Skip to content

Commit 6d07c11

Browse files
authored
{Core} Fix #31047: Remove unnecessary field get in action retrieval (#31057)
1 parent acc8724 commit 6d07c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/azure-cli-core/azure/cli/core/breaking_change.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _get_action_class(cli_ctx, action):
2424
if isinstance(action, type) and issubclass(action, argparse.Action):
2525
action_class = action
2626
elif isinstance(action, str):
27-
action_class = cli_ctx.invocation.command_loader.cli_ctx.invocation.parser._registries['action'][action] # pylint: disable=protected-access
27+
action_class = cli_ctx.invocation.parser._registries['action'][action] # pylint: disable=protected-access
2828
return action_class
2929

3030

0 commit comments

Comments
 (0)