deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1236152 - /deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
Date Thu, 26 Jan 2012 12:01:55 GMT
Author: mfojtik
Date: Thu Jan 26 12:01:55 2012
New Revision: 1236152

URL: http://svn.apache.org/viewvc?rev=1236152&view=rev
Log:
Changed Xpath to match RHEV-m XML layout changes

Signed-off-by: Francesco Vollero <fvollero@redhat.com>

Modified:
    deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb

Modified: deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb?rev=1236152&r1=1236151&r2=1236152&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb Thu Jan 26 12:01:55
2012
@@ -373,7 +373,7 @@ module RHEVM
       @storage = ((xml/'disks/disk/size').first.text rescue nil)
       @macs = (xml/'nics/nic/mac').collect { |mac| mac[:address] }
       @creation_time = (xml/'creation_time').text
-      @ip = ((xml/'guest_info/ip').first[:address] rescue nil)
+      @ip = ((xml/'guest_info/ips/ip').first[:address] rescue nil)
       @vnc = {
         :address => ((xml/'display/address').first.text rescue "127.0.0.1"),
         :port => ((xml/'display/port').first.text rescue "5890")



Mime
View raw message