Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhudd committed Dec 16, 2024
1 parent 65a021b commit 2cb836d
Show file tree
Hide file tree
Showing 4 changed files with 1,415 additions and 1,587 deletions.
12 changes: 0 additions & 12 deletions src/azure-cli/azure/cli/command_modules/vm/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,18 +1255,6 @@ def load_arguments(self, _):
c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], help='gallery image definition')
c.argument('gallery_image_version', options_list=['--gallery-image-version', '-e'], help='gallery image version')

with self.argument_context('sig show') as c:
c.argument('gallery_name', options_list=['--gallery-name', '-r'], id_part='name', help='gallery name')
c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], id_part='child_name_1', help='gallery image definition')

with self.argument_context('sig show') as c:
c.argument('select', help='The select expression to apply on the operation.')
c.argument('sharing_groups', action='store_true', help='The expand query option to query shared gallery groups')

with self.argument_context('sig list-shared') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('shared_to', shared_to_type)

for scope in ['sig share add', 'sig share remove']:
with self.argument_context(scope) as c:
c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name')
Expand Down
12 changes: 0 additions & 12 deletions src/azure-cli/azure/cli/command_modules/vm/azure_stack/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,18 +1258,6 @@ def load_arguments(self, _):
c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], help='gallery image definition')
c.argument('gallery_image_version', options_list=['--gallery-image-version', '-e'], help='gallery image version')

with self.argument_context('sig show') as c:
c.argument('gallery_name', options_list=['--gallery-name', '-r'], id_part='name', help='gallery name')
c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], id_part='child_name_1', help='gallery image definition')

with self.argument_context('sig show') as c:
c.argument('select', help='The select expression to apply on the operation.')
c.argument('sharing_groups', action='store_true', help='The expand query option to query shared gallery groups')

with self.argument_context('sig list-shared') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('shared_to', shared_to_type)

for scope in ['sig share add', 'sig share remove']:
with self.argument_context(scope) as c:
c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name')
Expand Down
Loading

0 comments on commit 2cb836d

Please sign in to comment.