Identation + misc PEP8 fixes.

This commit is contained in:
Michael DeHaan 2013-10-26 11:18:11 -04:00
parent bbb359870e
commit 54c902f102

View file

@ -781,7 +781,7 @@ class AnsibleModule(object):
def exit_json(self, **kwargs):
''' return from the module, without error '''
self.add_path_info(kwargs)
if not kwargs.has_key('changed'):
if not 'changed' in kwargs:
kwargs['changed'] = False
print self.jsonify(kwargs)
sys.exit(0)