Fix display of error message

It was crashing due to "domain" variable not being defined
reviewable/pr18780/r1
Matthew Landauer 10 years ago committed by Greg DeKoenigsberg
parent 2be58620e2
commit 3d2f19c24d

@ -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…
Cancel
Save