From 07ae7baaa4370acaa3259c0b4cd0df671b8b087a Mon Sep 17 00:00:00 2001 From: Johan Stenberg Date: Wed, 9 Mar 2016 16:11:46 -0800 Subject: [PATCH 1/2] Temporarily remove required validation for VirtualMachineExtension to unblock vm list/get scenarios --- src/azure/cli/commands/vm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/azure/cli/commands/vm.py b/src/azure/cli/commands/vm.py index 7b9ca346485..1a036f56238 100644 --- a/src/azure/cli/commands/vm.py +++ b/src/azure/cli/commands/vm.py @@ -16,6 +16,10 @@ def _compute_client_factory(): return get_service_client(ComputeManagementClient, ComputeManagementClientConfiguration) +# TODO: Remove when [#115382979] has been resolved +from azure.mgmt.compute.models import VirtualMachineExtension +VirtualMachineExtension._validation['location']['required'] = False + # pylint: disable=line-too-long build_operation("vm", "availabilityset", From d8e059d6abdfc72fed1cf21c8d5b744e0558fd99 Mon Sep 17 00:00:00 2001 From: Johan Stenberg Date: Wed, 9 Mar 2016 16:51:19 -0800 Subject: [PATCH 2/2] Fix pylint warnings --- src/azure/cli/commands/vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure/cli/commands/vm.py b/src/azure/cli/commands/vm.py index 1a036f56238..c1d4b0f52f8 100644 --- a/src/azure/cli/commands/vm.py +++ b/src/azure/cli/commands/vm.py @@ -17,8 +17,8 @@ def _compute_client_factory(): return get_service_client(ComputeManagementClient, ComputeManagementClientConfiguration) # TODO: Remove when [#115382979] has been resolved -from azure.mgmt.compute.models import VirtualMachineExtension -VirtualMachineExtension._validation['location']['required'] = False +from azure.mgmt.compute.models import VirtualMachineExtension # pylint: disable=wrong-import-position +VirtualMachineExtension._validation['location']['required'] = False # pylint: disable=protected-access # pylint: disable=line-too-long build_operation("vm",