Fix concatenation failure when zone is not defined
This commit is contained in:
parent
bd820e4c53
commit
d01ebe66af
@ -96,7 +96,10 @@ def main():
|
|||||||
|
|
||||||
break
|
break
|
||||||
else:
|
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
|
return
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user