cloudstack: cs_ip_address: fix returns on state=present (#3406)
In case poll_job=false the return must be None
This commit is contained in:
parent
0324d7a681
commit
de3aea7c36
1 changed files with 1 additions and 2 deletions
|
@ -202,8 +202,7 @@ class AnsibleCloudStackIPAddress(AnsibleCloudStack):
|
|||
|
||||
poll_async = self.module.params.get('poll_async')
|
||||
if poll_async:
|
||||
res = self.poll_job(res, 'ipaddress')
|
||||
ip_address = res
|
||||
ip_address = self.poll_job(res, 'ipaddress')
|
||||
return ip_address
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue