Skip to content

Commit e465e46

Browse files
committed
remove aaz update command
1 parent beaf8aa commit e465e46

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
from .__cmd_group import *
1212
from ._create import *
1313
from ._show import *
14-
from ._update import *

src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ..aaz.latest.vmss import (ListInstances as _VMSSListInstances,
99
Start as _Start,
1010
Create as _VMSSCreate,
11-
Update as _VMSSUpdate,
1211
Show as _VMSSShow)
1312
from azure.cli.core.aaz import AAZUndefined, has_value
1413

@@ -57,22 +56,6 @@ def _output(self, *args, **kwargs):
5756
return result
5857

5958

60-
class VMSSUpdate(_VMSSUpdate):
61-
62-
def _output(self, *args, **kwargs):
63-
from azure.cli.core.aaz import AAZUndefined, has_value
64-
65-
# Resolve flatten conflict
66-
# When the type field conflicts, the type in inner layer is ignored and the outer layer is applied
67-
if has_value(self.ctx.vars.instance.properties.virtual_machine_profile.extension_profile.extensions):
68-
for extension in self.ctx.vars.instance.properties.virtual_machine_profile.extension_profile.extensions:
69-
if has_value(extension.type):
70-
extension.type = AAZUndefined
71-
72-
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
73-
return result
74-
75-
7659
class VMSSShow(_VMSSShow):
7760

7861
def _output(self, *args, **kwargs):

src/azure-cli/azure/cli/command_modules/vm/operations/vmss_vms.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from knack.log import get_logger
77

88
from azure.cli.core.aaz import AAZUndefined, has_value
9-
from ..aaz.latest.vmss.vms import Create as _VMSSVMSCreate, Show as _VMSSVMSShow, Update as _VMSSVMSUpdate
9+
from ..aaz.latest.vmss.vms import Create as _VMSSVMSCreate, Show as _VMSSVMSShow
1010

1111
logger = get_logger(__name__)
1212

@@ -71,22 +71,6 @@ def _output(self, *args, **kwargs):
7171
return result
7272

7373

74-
class VMSSVMSUpdate(_VMSSVMSUpdate):
75-
76-
def _output(self, *args, **kwargs):
77-
from azure.cli.core.aaz import AAZUndefined, has_value
78-
79-
# Resolve flatten conflict
80-
# When the type field conflicts, the type in inner layer is ignored and the outer layer is applied
81-
if has_value(self.ctx.vars.instance.resources):
82-
for resource in self.ctx.vars.instance.resources:
83-
if has_value(resource.type):
84-
resource.type = AAZUndefined
85-
86-
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
87-
return result
88-
89-
9074
def convert_show_result_to_sneak_case(result):
9175
new_result = {}
9276
if "instanceId" in result:

0 commit comments

Comments
 (0)