Skip to content

Commit 184676f

Browse files
refactor: set command_preserve_casing in extension telemetry
1 parent b6609cd commit 184676f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/azure-cli-core/azure/cli/core/extension/dynamic_install.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def _check_value_in_extensions(cli_ctx, parser, args, no_prompt): # pylint: dis
194194
# extension is already installed and return if yes as the error is not caused by extension not installed.
195195
from azure.cli.core.extension import get_extension, ExtensionNotInstalledException
196196
from azure.cli.core.extension._resolve import resolve_from_index, NoExtensionCandidatesError
197+
from azure.cli.core.util import roughly_parse_command_with_casing
197198
extension_allow_preview = _get_extension_allow_preview_install_config(cli_ctx)
198199
try:
199200
ext = get_extension(ext_name)
@@ -208,7 +209,8 @@ def _check_value_in_extensions(cli_ctx, parser, args, no_prompt): # pylint: dis
208209

209210
telemetry.set_command_details(command_str,
210211
parameters=AzCliCommandInvoker._extract_parameter_names(args), # pylint: disable=protected-access
211-
extension_name=ext_name)
212+
extension_name=ext_name,
213+
command_preserve_casing = roughly_parse_command_with_casing(args))
212214
run_after_extension_installed = _get_extension_run_after_dynamic_install_config(cli_ctx)
213215
prompt_info = ""
214216
if no_prompt:

0 commit comments

Comments
 (0)