mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Fix for cli error
(cherry picked from commit 6124ba7d2c89eb366935c6d4d26a6b21ee17c223)
This commit is contained in:
parent
4b71995261
commit
aadd17d84f
@ -419,13 +419,13 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
|
||||
case hybridvisor
|
||||
when "vcenter"
|
||||
nic.IP = vm_tmplt['GUEST_IP'] if vm_tmplt['GUEST_IP']
|
||||
nic["IP"] = vm_tmplt['GUEST_IP'] if vm_tmplt['GUEST_IP']
|
||||
when "ec2"
|
||||
nic.IP = vm_tmplt['IP_ADDRESS'] if vm_tmplt['IP_ADDRESS']
|
||||
nic["IP"] = vm_tmplt['IP_ADDRESS'] if vm_tmplt['IP_ADDRESS']
|
||||
when "azure"
|
||||
nic.IP = vm_tmplt['IPADDRESS'] if vm_tmplt['IPADDRESS']
|
||||
nic["IP"]P = vm_tmplt['IPADDRESS'] if vm_tmplt['IPADDRESS']
|
||||
when "softlayer"
|
||||
nic.IP = vm_tmplt['PRIMARYIPADDRESS'] if vm_tmplt['PRIMARYIPADDRESS']
|
||||
nic["IP"] = vm_tmplt['PRIMARYIPADDRESS'] if vm_tmplt['PRIMARYIPADDRESS']
|
||||
else
|
||||
isHybrid = false
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user