This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ def try_sp_create() -> None:
347
347
not in str (err )
348
348
):
349
349
raise err
350
- logging .warning (
350
+ logger .warning (
351
351
"creating service principal failed with an error that occurs "
352
352
"due to AAD race conditions"
353
353
)
@@ -533,7 +533,7 @@ def deploy_template(self) -> None:
533
533
"PrincipalNotFound" in as_repr
534
534
and "does not exist in the directory" in as_repr
535
535
):
536
- logging .info ("application principal not available in AAD yet" )
536
+ logger .info ("application principal not available in AAD yet" )
537
537
if error :
538
538
raise error
539
539
else :
Original file line number Diff line number Diff line change @@ -252,10 +252,10 @@ def add_application_password(
252
252
while count < tries :
253
253
count += 1
254
254
if count > 1 :
255
- logging .info ("retrying app password creation" )
255
+ logger .info ("retrying app password creation" )
256
256
try :
257
257
password = add_application_password_impl (app_object_id , subscription_id )
258
- logging .info ("app password created" )
258
+ logger .info ("app password created" )
259
259
return password
260
260
except GraphQueryError as err :
261
261
error = err
@@ -265,9 +265,9 @@ def add_application_password(
265
265
# azure/cli/command_modules/util/tests/
266
266
# latest/test_rest.py#L191-L192
267
267
if "Request_ResourceNotFound" in repr (err ):
268
- logging .info ("app unavailable in AAD, unable to create password yet" )
268
+ logger .info ("app unavailable in AAD, unable to create password yet" )
269
269
else :
270
- logging .warning ("unable to create app password: %s" , err .message )
270
+ logger .warning ("unable to create app password: %s" , err .message )
271
271
time .sleep (wait_duration )
272
272
if error :
273
273
raise error
You can’t perform that action at this time.
0 commit comments