Skip to content

Commit f487900

Browse files
committed
[AKS] Fix --aks-mcp flag to accept true/false values
Simplified the aks-mcp parameter by removing custom positive/negative labels and using the default three_state_flag behavior to properly handle true/false values.
1 parent 9c55a47 commit f487900

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/aks-agent/HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ To release a new version, please select a new version number (usually plus 1 to
1111

1212
Pending
1313
+++++++
14+
* Fix the --aks-mcp flag to allow true/false values.
1415

1516
1.0.0b3
1617
+++++++

src/aks-agent/azext_aks_agent/_params.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ def load_arguments(self, _):
9090
"use_aks_mcp",
9191
options_list=["--aks-mcp"],
9292
default=False,
93-
arg_type=get_three_state_flag(
94-
positive_label="Enable AKS MCP integration",
95-
negative_label="Disable AKS MCP integration",
96-
),
93+
arg_type=get_three_state_flag(),
9794
help=(
9895
"Enable AKS MCP integration for enhanced capabilities. "
9996
"Traditional mode is the default. Use --aks-mcp to enable MCP mode, or "

0 commit comments

Comments
 (0)