mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-08 02:01:31 -07:00
refine role modules (#55021)
This commit is contained in:
parent
09f68fc659
commit
cb2972d647
5 changed files with 74 additions and 38 deletions
|
@ -348,8 +348,7 @@ class AzureRMRoleDefinition(AzureRMModuleBase):
|
|||
self.log("Deleting the role definition {0}".format(self.name))
|
||||
scope = self.build_scope()
|
||||
try:
|
||||
response = self._client.role_definitions.delete(name=self.name,
|
||||
scope=scope,
|
||||
response = self._client.role_definitions.delete(scope=scope,
|
||||
role_definition_id=role_definition_id)
|
||||
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
|
||||
response = self.get_poller_result(response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue