Skip to content

Commit 5a7e6a2

Browse files
authored
{Core} Remove Opt-In for --AcquirePolicyToken Flag (#32883)
1 parent 26b82a9 commit 5a7e6a2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • src/azure-cli-core/azure/cli/core/commands

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,8 @@ def __call__(self, parser, namespace, value, option_string=None):
227227
command.add_argument('_change_reference', '--change-reference', **change_reference_kwargs)
228228
command.add_argument('_acquire_policy_token', '--acquire-policy-token', **acquire_policy_token_kwargs)
229229

230-
policy_token_feature_enabled = cli_ctx.config.getboolean('core', 'enable_policy_token', False)
231-
if policy_token_feature_enabled:
232-
from knack import events
233-
cli_ctx.register_event(events.EVENT_INVOKER_POST_CMD_TBL_CREATE, add_global_policy_argument)
230+
from knack import events
231+
cli_ctx.register_event(events.EVENT_INVOKER_POST_CMD_TBL_CREATE, add_global_policy_argument)
234232

235233

236234
# pylint: disable=too-many-statements

0 commit comments

Comments
 (0)