Skip to content

Commit 674c898

Browse files
committed
Remove unnecessary AAZ command loading from __init__.py
The az aks safeguards commands are already available in the official CLI. The aks-preview extension overrides them through custom commands in commands.py. No need to explicitly load AAZ commands here.
1 parent ce9ff8d commit 674c898

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/aks-preview/azext_aks_preview/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ def __init__(self, cli_ctx=None):
3636
def load_command_table(self, args):
3737
super().load_command_table(args)
3838
from azext_aks_preview.commands import load_command_table
39-
from azure.cli.core.aaz import load_aaz_command_table
40-
try:
41-
from . import aaz
42-
except ImportError:
43-
aaz = None
44-
if aaz:
45-
load_aaz_command_table(
46-
loader=self,
47-
aaz_pkg_name=aaz.__name__,
48-
args=args
49-
)
5039
load_command_table(self, args)
5140
return self.command_table
5241

0 commit comments

Comments
 (0)