Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Misc} fix typo in messages #25673

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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