deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1212464 - /deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
Date Fri, 09 Dec 2011 15:01:24 GMT
Author: mfojtik
Date: Fri Dec  9 15:01:24 2011
New Revision: 1212464

URL: http://svn.apache.org/viewvc?rev=1212464&view=rev
Log:
VSphere: Fixed missing Array in InstanceAdddress processing for instance

Modified:
    deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb

Modified: deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb?rev=1212464&r1=1212463&r2=1212464&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb Fri Dec  9 15:01:24
2011
@@ -178,7 +178,7 @@ module Deltacloud::Drivers::VSphere
           if vm.guest[:net].empty?
             public_addresses = vm.macs.values.collect { |mac_address| InstanceAddress.new(mac_address,
:type => :mac) }
           else
-            public_addresses = InstanceAddress.new(vm.guest[:net].first[:ipAddress].first)
+            public_addresses = [InstanceAddress.new(vm.guest[:net].first[:ipAddress].first)]
           end
           Instance.new(
             :id => properties[:name],



Mime
View raw message