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

@ -96,7 +96,10 @@ def main():
break
else:
module.fail_json(msg="No zone found with id " + p['zone'])
if p['zone'] is None:
module.fail_json(msg="No zone found in domain " + p['domain'])
else:
module.fail_json(msg="No zone found with id " + p['zone'])
return
break
else: