incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962121 - /incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb
Date Thu, 08 Jul 2010 23:24:11 GMT
Author: lutter
Date: Thu Jul  8 23:24:10 2010
New Revision: 962121

URL: http://svn.apache.org/viewvc?rev=962121&view=rev
Log:
Add a comment

Modified:
    incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb

Modified: incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb?rev=962121&r1=962120&r2=962121&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb (original)
+++ incubator/deltacloud/trunk/client-ruby/lib/dcloud/instance.rb Thu Jul  8 23:24:10 2010
@@ -60,8 +60,8 @@ module DCloud
           @image = Image.new( @client, image_uri )
           flavor_uri = xml.get_elements( 'flavor' )[0].attributes['href']
           @flavor = Flavor.new( @client, flavor_uri )
-          puts xml.get_elements( 'realm' )          
-          if (xml.get_elements( 'realm' ))
+          # Only use realms if they are there        
+          if (!xml.get_elements( 'realm' ).empty?)
               realm_uri = xml.get_elements( 'realm' )[0].attributes['href']
               @realm = Realm.new( @client, realm_uri )
           end



Mime
View raw message