diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 93a0fba063..9cb7cfa2f3 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1354,7 +1354,7 @@ class AnsibleModule(object): if not 'changed' in kwargs: kwargs['changed'] = False self.do_cleanup_files() - print self.jsonify(kwargs) + print(self.jsonify(kwargs)) sys.exit(0) def fail_json(self, **kwargs): @@ -1363,7 +1363,7 @@ class AnsibleModule(object): assert 'msg' in kwargs, "implementation error -- msg to explain the error is required" kwargs['failed'] = True self.do_cleanup_files() - print self.jsonify(kwargs) + print(self.jsonify(kwargs)) sys.exit(1) def is_executable(self, path):