Fix display of error message

It was crashing due to "domain" variable not being defined
reviewable/pr18780/r1
Matthew Landauer 10 years ago
parent e196703ff3
commit 14b62bb32a

@ -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