Fix concatenation failure when zone is not defined

This commit is contained in:
nemunaire 2023-12-11 09:34:52 +01:00
parent bd820e4c53
commit d01ebe66af

View File

@ -95,6 +95,9 @@ def main():
result['published'] = True result['published'] = True
break break
else:
if p['zone'] is None:
module.fail_json(msg="No zone found in domain " + p['domain'])
else: else:
module.fail_json(msg="No zone found with id " + p['zone']) module.fail_json(msg="No zone found with id " + p['zone'])
return return