deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/4] git commit: Vsphere: Fixed typo in create_instance method (DTACLOUD-401)
Date Wed, 02 Jan 2013 14:41:10 GMT
Updated Branches:
  refs/heads/master 4662285e0 -> a3f09c185


Vsphere: Fixed typo in create_instance method (DTACLOUD-401)

In case the driver method is called from CIMI, the opts[:image_id]
is empty. Lets use the 'image_id' here anyway.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a3f09c18
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a3f09c18
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a3f09c18

Branch: refs/heads/master
Commit: a3f09c1855ab35d9a6b295643a4df1a2425177ab
Parents: 9626301
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Jan 2 15:09:08 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Wed Jan 2 15:09:08 2013 +0100

----------------------------------------------------------------------
 .../deltacloud/drivers/vsphere/vsphere_driver.rb   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a3f09c18/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
index 2ddd43a..272f471 100644
--- a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
+++ b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
@@ -214,7 +214,7 @@ module Deltacloud::Drivers::Vsphere
         if opts[:hwp_cpu]
           raise "Invalid CPU value. Must be in integer format" unless valid_cpu_value?(opts[:hwp_cpu])
         end
-        vm = find_vm(credentials, opts[:image_id])
+        vm = find_vm(credentials, image_id)
         raise "ERROR: Could not find the image in given datacenter" unless vm[:instance]
         # New instance need valid resource pool and datastore to be placed.
         # For this reason, realm_id **needs** to be set.


Mime
View raw message