Skip to content

Commit

Permalink
[Compute] Fix #22654: az vm/vmss run-command: Fix the bug that --prot…
Browse files Browse the repository at this point in the history
…ected-parameters does not achieve the desired effect (#23175)
  • Loading branch information
yanzhudd committed Jul 14, 2022
1 parent 4861021 commit 6545291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/azure-cli/azure/cli/command_modules/vm/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,7 @@ def vm_run_command_create(client,
if protected_parameters is not None:
auto_arg_name_num = 0
run_command['protected_parameters'] = []
for p in parameters:
for p in protected_parameters:
if '=' in p:
n, v = p.split('=', 1)
else:
Expand Down Expand Up @@ -2553,7 +2553,7 @@ def vm_run_command_update(client,
if protected_parameters is not None:
auto_arg_name_num = 0
run_command['protected_parameters'] = []
for p in parameters:
for p in protected_parameters:
if '=' in p:
n, v = p.split('=', 1)
else:
Expand Down Expand Up @@ -4039,7 +4039,7 @@ def vmss_run_command_create(client,
if protected_parameters is not None:
auto_arg_name_num = 0
run_command['protected_parameters'] = []
for p in parameters:
for p in protected_parameters:
if '=' in p:
n, v = p.split('=', 1)
else:
Expand Down Expand Up @@ -4115,7 +4115,7 @@ def vmss_run_command_update(client,
if protected_parameters is not None:
auto_arg_name_num = 0
run_command['protected_parameters'] = []
for p in parameters:
for p in protected_parameters:
if '=' in p:
n, v = p.split('=', 1)
else:
Expand Down

0 comments on commit 6545291

Please sign in to comment.