deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [7/7] git commit: Fixes typo in Openstack driver (instance create without specified hwp)
Date Tue, 03 Apr 2012 15:11:32 GMT
Fixes typo in Openstack driver (instance create without specified hwp)


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

Branch: refs/heads/master
Commit: 5a6e19cb84a384a18b92e64b156a7c03742593c3
Parents: d30e89e
Author: marios <marios@redhat.com>
Authored: Tue Apr 3 15:04:22 2012 +0300
Committer: marios <marios@redhat.com>
Committed: Tue Apr 3 15:04:22 2012 +0300

----------------------------------------------------------------------
 .../drivers/openstack/openstack_driver.rb          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/5a6e19cb/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
index 82a2b07..4c768c9 100644
--- a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
+++ b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
@@ -140,7 +140,7 @@ module Deltacloud
           params[:name] = (opts[:name] && opts[:name].length>0)? opts[:name] :
Time.now.to_s
           params[:imageRef] = image_id
           params[:flavorRef] =  (opts[:hwp_id] && opts[:hwp_id].length>0) ?
-                          opts[:hwp_id] : hardware_profiles(credentials).first
+                          opts[:hwp_id] : hardware_profiles(credentials).first.name
           if opts[:password] && opts[:password].length > 0
             params[:adminPass]=opts[:password]
           end


Mime
View raw message