You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/11/09 13:36:34 UTC
svn commit: r1199713 -
/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
Author: mfojtik
Date: Wed Nov 9 12:36:34 2011
New Revision: 1199713
URL: http://svn.apache.org/viewvc?rev=1199713&view=rev
Log:
RHEV-M: Reported IP type is now ipv4 instead of ipv6
Modified:
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb?rev=1199713&r1=1199712&r2=1199713&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb Wed Nov 9 12:36:34 2011
@@ -231,11 +231,11 @@ class RHEVMDriver < Deltacloud::BaseDriv
public_addresses = []
# First try to get IP address from RHEV-M. This require rhev-agent package
# installed on guest
- public_addresses << InstanceAddress.new(inst.ip, :type => :ipv6) if inst.ip
+ public_addresses << InstanceAddress.new(inst.ip) if inst.ip
# ConfServer will overide the IP address returned by RHEV-M guest agent
if ENV['CONFIG_SERVER_ADDRESS']
ip = confserver_ip(inst.id)
- public_addresses = [ InstanceAddress.new(ip, :type => :ipv6) ]
+ public_addresses = [ InstanceAddress.new(ip) ]
end
# If IP retrieval failed, fallback to VNC and MAC address
if public_addresses.empty?