1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix display of error message

It was crashing due to "domain" variable not being defined
This commit is contained in:
Matthew Landauer 2015-02-17 16:56:15 +11:00 committed by Matt Clay
parent c7a04c0863
commit 1f09e32baa

View file

@ -292,7 +292,7 @@ def main():
if not "value" in new_record:
if not current_record:
module.fail_json(
msg="A record with name '%s' does not exist for domain '%s.'" % (record_name, domain))
msg="A record with name '%s' does not exist for domain '%s.'" % (record_name, module.params['domain']))
module.exit_json(changed=False, result=current_record)
# create record as it does not exist