mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #15112 from djmattyg007/comment_improvement
Small comment improvement in AnsibleModule class
This commit is contained in:
commit
72e111ecca
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ class AnsibleModule(object):
|
||||||
self.aliases = self._handle_aliases()
|
self.aliases = self._handle_aliases()
|
||||||
except Exception:
|
except Exception:
|
||||||
e = get_exception()
|
e = get_exception()
|
||||||
# use exceptions here cause its not safe to call vail json until no_log is processed
|
# Use exceptions here because it isn't safe to call fail_json until no_log is processed
|
||||||
print('{"failed": true, "msg": "Module alias error: %s"}' % str(e))
|
print('{"failed": true, "msg": "Module alias error: %s"}' % str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue