Fix display of error message

It was crashing due to "domain" variable not being defined
pull/18777/head
Matthew Landauer 10 years ago committed by Matt Clay
parent c7a04c0863
commit 1f09e32baa

@ -292,7 +292,7 @@ def main():
if not "value" in new_record: if not "value" in new_record:
if not current_record: if not current_record:
module.fail_json( 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) module.exit_json(changed=False, result=current_record)
# create record as it does not exist # create record as it does not exist

Loading…
Cancel
Save