deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1214311 - /deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb
Date Wed, 14 Dec 2011 15:57:16 GMT
Author: mfojtik
Date: Wed Dec 14 15:57:16 2011
New Revision: 1214311

URL: http://svn.apache.org/viewvc?rev=1214311&view=rev
Log:
RHEV-M: Fixed variable name typo in RHEV-M client

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=1214311&r1=1214310&r2=1214311&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_client.rb Wed Dec 14 15:57:16
2011
@@ -147,8 +147,8 @@ module RHEVM
         :content_type => 'application/xml',
         :accept => 'application/xml',
       })
-      vm = vms(:id => id)
-      raise RHEVMBackendException::new("Requested VM not found in datacenter #{self.current_datacenter.id}")
if vm.empty?
+      templates = templates(:id => template_id)
+      raise RHEVMBackendException::new("Requested VM not found in datacenter #{self.current_datacenter.id}")
if templates.empty?
       headers.merge!(auth_header)
       begin
         vm = RHEVM::client(@api_entrypoint)["/vms"].post(Nokogiri::XML(builder.to_xml).root.to_s,
headers)



Mime
View raw message