mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 10:13:09 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user