Fix concatenation failure when zone is not defined
This commit is contained in:
parent
bd820e4c53
commit
d01ebe66af
@ -95,6 +95,9 @@ def main():
|
||||
result['published'] = True
|
||||
|
||||
break
|
||||
else:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user