Attempt to make self.play_context.connection JSON serializable

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-14 22:54:54 +02:00
parent 9c6e27ca13
commit dab9296b8c

View file

@ -258,7 +258,7 @@ class CallbackModule(CallbackBase):
info = {}
info['play'] = play.name
info['hosts'] = play.hosts
info['transport'] = self.play_context.connection
info['transport'] = str(self.play_context.connection)
info['number'] = self._play_count
info['check'] = self.play_context.check_mode
info['diff'] = self.play_context.diff