Fix display of error message
It was crashing due to "domain" variable not being defined
This commit is contained in:
parent
c7a04c0863
commit
1f09e32baa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue