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 2012/01/26 13:01:55 UTC

svn commit: r1236152 - /deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb

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 <fv...@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")