Skip to content

Commit

Permalink
Merge pull request #57 from PakDLiu/donaliu/customShowCommand
Browse files Browse the repository at this point in the history
Use custom_show_command instead as per guidelines
  • Loading branch information
PakDLiu authored Mar 18, 2021
2 parents 5cf00d0 + 92085be commit 5074f77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions azext_hanaonazure/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def load_command_table(self, _):
with self.command_group('hanainstance', client_factory=cf_hanainstance_groups) as g:
g.custom_command('create', 'create_hanainstance')
g.custom_command('list', 'list_hanainstance')
g.custom_command('show', 'show_hanainstance',
exception_handler=empty_on_404)
g.custom_show_command('show', 'show_hanainstance')
g.custom_command('restart', 'restart_hanainstance')
g.custom_command('start', 'start_hanainstance')
g.custom_command('shutdown', 'shutdown_hanainstance')
Expand All @@ -27,7 +26,7 @@ def load_command_table(self, _):

with self.command_group('sapmonitor', client_factory=cf_sapmonitor_groups) as g:
g.custom_command('list', 'list_sapmonitor')
g.custom_command('show', 'show_sapmonitor', exception_handler=empty_on_404)
g.custom_show_command('show', 'show_sapmonitor')
g.custom_command('create', 'create_sapmonitor')
g.generic_update_command('update', getter_name='show_sapmonitor', setter_name='update_sapmonitor',
command_type=custom_type, supports_no_wait=True)
Expand Down

0 comments on commit 5074f77

Please sign in to comment.