Skip to content

Commit 053e961

Browse files
authored
{Core} show secrets warning after query filter (#28420)
1 parent 505d120 commit 053e961

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/azure-cli-core/azure/cli/core/commands/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@ def execute(self, args):
675675
event_data = {'result': results}
676676
self.cli_ctx.raise_event(EVENT_INVOKER_FILTER_RESULT, event_data=event_data)
677677

678+
if not self.data['output'] or self.data['output'] != 'none':
679+
self._resolve_output_sensitive_data_warning(cmd, event_data['result'])
680+
678681
# save to local context if it is turned on after command executed successfully
679682
if self.cli_ctx.local_context.is_on and command and command in self.commands_loader.command_table and \
680683
command in self.parser.subparser_map and self.parser.subparser_map[command].specified_arguments:
@@ -711,7 +714,6 @@ def _run_job(self, expanded_arg, cmd_copy):
711714
result = list(result)
712715

713716
result = todict(result, AzCliCommandInvoker.remove_additional_prop_layer)
714-
self._resolve_output_sensitive_data_warning(cmd_copy, result)
715717

716718
event_data = {'result': result}
717719
cmd_copy.cli_ctx.raise_event(EVENT_INVOKER_TRANSFORM_RESULT, event_data=event_data)

0 commit comments

Comments
 (0)