mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
cloudstack: use poll_job() from utils
This commit is contained in:
parent
03d3baa164
commit
aca98e2f8e
16 changed files with 46 additions and 53 deletions
|
@ -432,7 +432,7 @@ class AnsibleCloudStackNetwork(AnsibleCloudStack):
|
|||
|
||||
poll_async = self.module.params.get('poll_async')
|
||||
if network and poll_async:
|
||||
network = self._poll_job(network, 'network')
|
||||
network = self.poll_job(network, 'network')
|
||||
return network
|
||||
|
||||
|
||||
|
@ -490,7 +490,7 @@ class AnsibleCloudStackNetwork(AnsibleCloudStack):
|
|||
|
||||
poll_async = self.module.params.get('poll_async')
|
||||
if network and poll_async:
|
||||
network = self._poll_job(network, 'network')
|
||||
network = self.poll_job(network, 'network')
|
||||
return network
|
||||
|
||||
|
||||
|
@ -510,7 +510,7 @@ class AnsibleCloudStackNetwork(AnsibleCloudStack):
|
|||
|
||||
poll_async = self.module.params.get('poll_async')
|
||||
if res and poll_async:
|
||||
res = self._poll_job(res, 'network')
|
||||
res = self.poll_job(res, 'network')
|
||||
return network
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue