Skip to content

Commit

Permalink
Some remaining show commands without handling (Azure#7044)
Browse files Browse the repository at this point in the history
  • Loading branch information
williexu authored and troydai committed Aug 15, 2018
1 parent fcf6c56 commit dbaaea9
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-appservice/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
0.2.4
+++++
* `webapp/functionapp identity show`: exception handling to exit with code 3 upon a missing resource for consistency

0.2.3
+++++
* arm tag support on create commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load_command_table(self, _):
g.custom_command('browse', 'view_in_browser')
g.custom_command('list-runtimes', 'list_runtimes')
g.custom_command('identity assign', 'assign_identity')
g.custom_command('identity show', 'show_identity')
g.custom_show_command('identity show', 'show_identity')
g.custom_command('identity remove', 'remove_identity')
g.generic_update_command('update', getter_name='get_webapp', setter_name='set_webapp', custom_func_name='update_webapp', command_type=appservice_custom)

Expand Down Expand Up @@ -183,7 +183,7 @@ def load_command_table(self, _):
g.custom_command('restart', 'restart_webapp')
g.custom_command('list-consumption-locations', 'list_consumption_locations')
g.custom_command('identity assign', 'assign_identity')
g.custom_command('identity show', 'show_identity')
g.custom_show_command('identity show', 'show_identity')
g.custom_command('identity remove', 'remove_identity')
g.generic_update_command('update', setter_name='set_functionapp', setter_type=appservice_custom, command_type=webapp_sdk)

Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-appservice/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.2.3"
VERSION = "0.2.4"
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-backup/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.2.1
+++++
* `backup vault backup-properties show`: exception handling to exit with code 3 upon a missing resource for consistency.

1.2.0
+++++
* BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_command_table(self, _):
g.custom_command('create', 'create_vault')
g.show_command('show', 'get')
g.custom_command('list', 'list_vaults')
g.command('backup-properties show', 'get', command_type=backup_storage_config_sdk)
g.show_command('backup-properties show', 'get', command_type=backup_storage_config_sdk)
g.custom_command('backup-properties set', 'set_backup_properties', client_factory=backup_storage_configs_cf)
g.custom_command('delete', 'delete_vault', confirmation=True)

Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-backup/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "1.2.0"
VERSION = "1.2.1"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
3 changes: 3 additions & 0 deletions src/command_modules/azure-cli-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Release History
===============
2.2.4
+++++
* `network application-gateway ssl-policy predefined show`: exception handling to exit with code 3 upon a missing resource for consistency

2.2.3
+++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _make_singular(value):
with self.command_group('network application-gateway ssl-policy', network_ag_sdk, min_api='2017-06-01') as g:
g.command('list-options', 'list_available_ssl_options')
g.command('predefined list', 'list_available_ssl_predefined_policies')
g.command('predefined show', 'get_ssl_predefined_policy')
g.show_command('predefined show', 'get_ssl_predefined_policy')

with self.command_group('network application-gateway url-path-map rule') as g:
g.custom_command('create', 'create_ag_url_path_map_rule', supports_no_wait=True, validator=process_ag_url_path_map_rule_create_namespace)
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-network/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "2.2.3"
VERSION = "2.2.4"
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down
3 changes: 3 additions & 0 deletions src/command_modules/azure-cli-resource/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Release History
===============
2.1.3
+++++
* `provider operation show`: exception handling to exit with code 3 upon a missing resource for consistency.

2.1.2
+++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def load_command_table(self, _):
g.custom_command('register', 'register_provider')
g.custom_command('unregister', 'unregister_provider')
g.custom_command('operation list', 'list_provider_operations')
g.custom_command('operation show', 'show_provider_operations')
g.custom_show_command('operation show', 'show_provider_operations')

# Resource feature commands
with self.command_group('feature', resource_feature_sdk, client_factory=cf_features, resource_type=ResourceType.MGMT_RESOURCE_FEATURES) as g:
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-resource/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "2.1.2"
VERSION = "2.1.3"

CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
Expand Down
3 changes: 3 additions & 0 deletions src/command_modules/azure-cli-storage/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Release History
===============
2.2.1
+++++
* `storage share policy show`: exception handling to exit with code 3 upon a missing resource for consistency.

2.2.0
+++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT

g.storage_custom_command('policy create', 'create_acl_policy')
g.storage_custom_command('policy delete', 'delete_acl_policy')
g.storage_custom_command('policy show', 'get_acl_policy')
g.storage_custom_command('policy show', 'get_acl_policy', exception_handler=show_exception_handler)
g.storage_custom_command('policy list', 'list_acl_policies', table_transformer=transform_acl_list_output)
g.storage_custom_command('policy update', 'set_acl_policy')

Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-storage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "2.2.0"
VERSION = "2.2.1"
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-vm/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
2.2.2
++++++
* `vm/vmss identity show`: exception handling to exit with code 3 upon a missing resource for consistency

2.2.1
++++++
* vm list-skus: add a few common filters to make the command easier to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def load_command_table(self, _):
with self.command_group('vm', compute_vm_sdk) as g:
g.custom_command('identity assign', 'assign_vm_identity', validator=process_assign_identity_namespace)
g.custom_command('identity remove', 'remove_vm_identity', validator=process_remove_identity_namespace, min_api='2017-12-01')
g.custom_command('identity show', 'show_vm_identity')
g.custom_show_command('identity show', 'show_vm_identity')

g.custom_command('capture', 'capture_vm')
g.custom_command('create', 'create_vm', transform=transform_vm_create_output, supports_no_wait=True, table_transformer=deployment_validate_table_format, validator=process_vm_create_namespace, exception_handler=handle_template_based_exception)
Expand Down Expand Up @@ -263,7 +263,7 @@ def load_command_table(self, _):
with self.command_group('vmss', compute_vmss_sdk, operation_group='virtual_machine_scale_sets') as g:
g.custom_command('identity assign', 'assign_vmss_identity', validator=process_assign_identity_namespace)
g.custom_command('identity remove', 'remove_vmss_identity', validator=process_remove_identity_namespace, min_api='2017-12-01')
g.custom_command('identity show', 'show_vmss_identity')
g.custom_show_command('identity show', 'show_vmss_identity')
g.custom_command('create', 'create_vmss', transform=DeploymentOutputLongRunningOperation(self.cli_ctx, 'Starting vmss create'), supports_no_wait=True, table_transformer=deployment_validate_table_format, validator=process_vmss_create_namespace, exception_handler=handle_template_based_exception)
g.custom_command('deallocate', 'deallocate_vmss', supports_no_wait=True)
g.command('delete', 'delete', supports_no_wait=True)
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-vm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
cmdclass = {}


VERSION = "2.2.1"
VERSION = "2.2.2"

CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit dbaaea9

Please sign in to comment.