diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index d08a09727e1..c7798bdf700 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ +0.5.128 ++++++++ +* Fix option name `--duration` for command group `az aks maintenanceconfiguration` + 0.5.127 +++++++ * Add `--node-os-upgrade-channel ` option for specifying the manner in which the OS on your nodes is updated in `aks create` and `aks update` diff --git a/src/aks-preview/azext_aks_preview/maintenanceconfiguration.py b/src/aks-preview/azext_aks_preview/maintenanceconfiguration.py index 6d70730ef8d..b8783be410e 100644 --- a/src/aks-preview/azext_aks_preview/maintenanceconfiguration.py +++ b/src/aks-preview/azext_aks_preview/maintenanceconfiguration.py @@ -97,7 +97,7 @@ def constructMaintenanceWindow(cmd, raw_parameters): if start_time is None: raise RequiredArgumentMissingError('Please specify --start-time for maintenance window.') if duration_hours is None: - raise RequiredArgumentMissingError('Please specify --duration-hours for maintenance window.') + raise RequiredArgumentMissingError('Please specify --duration for maintenance window.') MaintenanceWindow = cmd.get_models('MaintenanceWindow', resource_type=CUSTOM_MGMT_AKS_PREVIEW, operation_group='maintenance_configurations') maintenanceWindow = MaintenanceWindow( diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_maintenanceconfiguration.py b/src/aks-preview/azext_aks_preview/tests/latest/test_maintenanceconfiguration.py index a540c72707e..422dd33eadd 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_maintenanceconfiguration.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_maintenanceconfiguration.py @@ -181,7 +181,7 @@ def test_add_dedicated_schedule_with_missing_options(self): "start_time": "00:00", } - err = ("Please specify --duration-hours for maintenance window.") + err = ("Please specify --duration for maintenance window.") with self.assertRaises(RequiredArgumentMissingError) as cm: mc.aks_maintenanceconfiguration_update_internal(cmd, None, raw_parameters) self.assertEqual(str(cm.exception), err) diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index ca280b7010c..1acbb04ffc9 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -VERSION = "0.5.127" +VERSION = "0.5.128" CLASSIFIERS = [ "Development Status :: 4 - Beta",