incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962227 - /incubator/deltacloud/trunk/client/lib/deltacloud.rb
Date Thu, 08 Jul 2010 23:37:59 GMT
Author: lutter
Date: Thu Jul  8 23:37:59 2010
New Revision: 962227

URL: http://svn.apache.org/viewvc?rev=962227&view=rev
Log:
Fixed fetch_documentation method

Modified:
    incubator/deltacloud/trunk/client/lib/deltacloud.rb

Modified: incubator/deltacloud/trunk/client/lib/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/lib/deltacloud.rb?rev=962227&r1=962226&r2=962227&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/lib/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/client/lib/deltacloud.rb Thu Jul  8 23:37:59 2010
@@ -114,7 +114,7 @@ class DeltaCloud
 
   def fetch_documentation(collection, operation=nil)
     response = @http["docs/#{collection}#{operation ? "/#{operation}" : ''}"].get(:accept
=> "application/xml")
-    doc = REXML::Document.new( response )
+    doc = REXML::Document.new( response.to_s )
     if operation.nil?
       docs = {
         :name => doc.get_elements('docs/collection').first.attributes['name'],



Mime
View raw message