mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
fix poller for some resources (#54853)
This commit is contained in:
parent
684b749e47
commit
3be01cce33
3 changed files with 6 additions and 4 deletions
|
@ -331,7 +331,7 @@ class AzureRMRoleDefinition(AzureRMModuleBase):
|
|||
response = self._client.role_definitions.create_or_update(role_definition_id=self.role['name'] if self.role else str(uuid.uuid4()),
|
||||
scope=self.scope,
|
||||
role_definition=role_definition)
|
||||
if isinstance(response, AzureOperationPoller):
|
||||
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
|
||||
response = self.get_poller_result(response)
|
||||
|
||||
except CloudError as exc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue