From 3a793a0ae1caa9a361cc626d70a6b3eec359b4d9 Mon Sep 17 00:00:00 2001 From: Yunge Zhu Date: Tue, 7 Mar 2023 11:24:12 +0800 Subject: [PATCH] fix typo in messages (#25673) --- .../azure/cli/command_modules/serviceconnector/_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/serviceconnector/_utils.py b/src/azure-cli/azure/cli/command_modules/serviceconnector/_utils.py index 9f606c93d2b..e46a863edbd 100644 --- a/src/azure-cli/azure/cli/command_modules/serviceconnector/_utils.py +++ b/src/azure-cli/azure/cli/command_modules/serviceconnector/_utils.py @@ -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) @@ -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 @@ -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