From 85d3724a378c7fb5b11bbfaf73d8907eae1884e4 Mon Sep 17 00:00:00 2001 From: Sergio Semedi Barranco Date: Thu, 18 Jan 2018 11:04:59 +0100 Subject: [PATCH] azure_driver get_instance fix (#1651) --- src/vmm_mad/remotes/az/az_driver.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vmm_mad/remotes/az/az_driver.rb b/src/vmm_mad/remotes/az/az_driver.rb index ab92f0fc8c..2235933457 100755 --- a/src/vmm_mad/remotes/az/az_driver.rb +++ b/src/vmm_mad/remotes/az/az_driver.rb @@ -594,10 +594,9 @@ private # Retrieve the instance from Azure. If OpenNebula asks for it, then the # vm_name must comply with the notation name_csn def get_instance(deploy_id) - vm_name = deploy_id.match(/([^_]+)-(.+)/)[1] csn = deploy_id.match(/([^_]+)-(.+)/)[-1] - instance = @azure_vms.get_virtual_machine(vm_name,csn) + instance = @azure_vms.get_virtual_machine(deploy_id,csn) if instance return instance else