File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010from azure .cli .core .util import sdk_no_wait
1111from azure .cli .core .profiles import ResourceType , get_sdk
1212from azure .cli .core .commands .client_factory import get_mgmt_service_client , get_data_service_client
13+ from azure .core .exceptions import HttpResponseError
1314from azure .mgmt .compute .models import ResourceIdentityType
14- from msrestazure .tools import parse_resource_id
15- from msrestazure .azure_exceptions import CloudError
15+ from azure .mgmt .core .tools import parse_resource_id
1616
1717from knack .util import CLIError
1818from knack .log import get_logger
@@ -265,7 +265,7 @@ def _create_role_assignments_for_scopes(self, scopes):
265265
266266 self ._roles_client .role_assignments .create (scope , assignment_name , params_role_assignment )
267267 created = True
268- except CloudError as cex :
268+ except HttpResponseError as cex :
269269 logger .info ("Error during role assignment %s" , cex )
270270 if ((not cex .error ) or (not cex .error .error ) or
271271 (PRINCIPAL_NOT_FOUND_ERROR != cex .error .error .lower ())):
You can’t perform that action at this time.
0 commit comments