Skip to content

Commit

Permalink
fix typo in messages (#25673)
Browse files Browse the repository at this point in the history
  • Loading branch information
yungezz authored Mar 7, 2023
1 parent 259eb96 commit 3a793a0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def auto_register(func, *args, **kwargs):
def create_key_vault_reference_connection_if_not_exist(cmd, client, source_id, key_vault_id):
from ._validators import get_source_resource_name

logger.warning('get valid key vualt reference connection')
logger.warning('get valid key vault reference connection')
key_vault_connections = []
for connection in client.list(resource_uri=source_id):
connection = todict(connection)
Expand Down Expand Up @@ -288,13 +288,13 @@ def get_auth_if_no_valid_key_vault_connection(source_name, source_id, key_vault_
auth_info = connection.get('authInfo')
if auth_info.get('clientId') == client_id and auth_info.get('subscriptionId') == subscription_id:
logger.warning(
'key vualt reference connection: %s', connection.get('id'))
'key vault reference connection: %s', connection.get('id'))
return
else: # System Identity
for connection in key_vault_connections:
if connection.get('authInfo').get('authType') == auth_type:
logger.warning(
'key vualt reference connection: %s', connection.get('id'))
'key vault reference connection: %s', connection.get('id'))
return

# any connection with csi enabled is a valid connection
Expand All @@ -306,7 +306,7 @@ def get_auth_if_no_valid_key_vault_connection(source_name, source_id, key_vault_
return {'authType': 'userAssignedIdentity'}

else:
logger.warning('key vualt reference connection: %s',
logger.warning('key vault reference connection: %s',
key_vault_connections[0].get('id'))
return

Expand Down

0 comments on commit 3a793a0

Please sign in to comment.