From 4750136eb1c354a768bf2d6caebaab02414b3ad3 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Tue, 18 Nov 2014 11:55:16 +0100 Subject: [PATCH] Fix for cli error --- src/cli/one_helper/onevm_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/one_helper/onevm_helper.rb b/src/cli/one_helper/onevm_helper.rb index 5dd840c45b..cb38c73af3 100644 --- a/src/cli/one_helper/onevm_helper.rb +++ b/src/cli/one_helper/onevm_helper.rb @@ -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