Fix concatenation failure when zone is not defined
This commit is contained in:
parent
bd820e4c53
commit
d01ebe66af
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user