From c2e3a6678041971a5e52398d8de3183ae3d7fe68 Mon Sep 17 00:00:00 2001 From: Oluwatosin Adewale Date: Fri, 19 Oct 2018 16:26:26 -0700 Subject: [PATCH 1/2] Fixed bug where --no-wait option causes vm resize to crash. --- src/command_modules/azure-cli-vm/HISTORY.rst | 1 + .../azure-cli-vm/azure/cli/command_modules/vm/custom.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command_modules/azure-cli-vm/HISTORY.rst b/src/command_modules/azure-cli-vm/HISTORY.rst index 51f03fdf587..ebacc958b6c 100644 --- a/src/command_modules/azure-cli-vm/HISTORY.rst +++ b/src/command_modules/azure-cli-vm/HISTORY.rst @@ -8,6 +8,7 @@ Release History * `vm/vmss create`: enforce disk caching mode be `None` for Lv/Lv2 series of machines * `vm create`: update supported size list supporting networking accelerator * `disk update`: expose strong typed arguments for ultrassd iops and mbps configs +* `vm resize`: fix bug where `--no-wait` option causes command to crash 2.2.5 ++++++ diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index a1c4b093cc4..dda6d9acbbf 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py @@ -882,7 +882,7 @@ def resize_vm(cmd, resource_group_name, vm_name, size, no_wait=False): return None vm.hardware_profile.vm_size = size # pylint: disable=no-member - return set_vm(cmd, vm, no_wait) + return set_vm(cmd, vm, no_wait=no_wait) def set_vm(cmd, instance, lro_operation=None, no_wait=False): From 17b00678d0e9e366101e00fc9a294f5311efbfe1 Mon Sep 17 00:00:00 2001 From: Oluwatosin Adewale Date: Mon, 22 Oct 2018 10:16:57 -0700 Subject: [PATCH 2/2] Bump up VM version number --- src/command_modules/azure-cli-vm/HISTORY.rst | 5 ++++- src/command_modules/azure-cli-vm/setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/command_modules/azure-cli-vm/HISTORY.rst b/src/command_modules/azure-cli-vm/HISTORY.rst index ebacc958b6c..bbbb846e0e6 100644 --- a/src/command_modules/azure-cli-vm/HISTORY.rst +++ b/src/command_modules/azure-cli-vm/HISTORY.rst @@ -3,12 +3,15 @@ Release History =============== +2.2.7 +++++++ +* `vm resize`: fix bug where `--no-wait` option causes command to crash + 2.2.6 ++++++ * `vm/vmss create`: enforce disk caching mode be `None` for Lv/Lv2 series of machines * `vm create`: update supported size list supporting networking accelerator * `disk update`: expose strong typed arguments for ultrassd iops and mbps configs -* `vm resize`: fix bug where `--no-wait` option causes command to crash 2.2.5 ++++++ diff --git a/src/command_modules/azure-cli-vm/setup.py b/src/command_modules/azure-cli-vm/setup.py index 575bff4343a..c80f5b3d9c3 100644 --- a/src/command_modules/azure-cli-vm/setup.py +++ b/src/command_modules/azure-cli-vm/setup.py @@ -15,7 +15,7 @@ cmdclass = {} -VERSION = "2.2.6" +VERSION = "2.2.7" CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable',