cloudstack: use poll_job() from utils

This commit is contained in:
Rene Moser 2016-06-09 22:39:03 +02:00 committed by Matt Clay
parent 03d3baa164
commit aca98e2f8e
16 changed files with 46 additions and 53 deletions

View file

@ -261,7 +261,7 @@ class AnsibleCloudStackAccount(AnsibleCloudStack):
poll_async = self.module.params.get('poll_async')
if poll_async:
account = self._poll_job(account, 'account')
account = self.poll_job(account, 'account')
return account
def present_account(self):
@ -311,7 +311,7 @@ class AnsibleCloudStackAccount(AnsibleCloudStack):
poll_async = self.module.params.get('poll_async')
if poll_async:
self._poll_job(res, 'account')
self.poll_job(res, 'account')
return account
def get_result(self, account):