mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
azure_driver get_instance fix (#1651)
(cherry picked from commit 85d3724a37)
This commit is contained in:
1 parent
3d8e5bdd22
commit
34fb937766
1 file changed
+1
-2
@@ -537,10 +537,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
|
||||
|
||||
Reference in new issue
Block a user