You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/04/03 17:11:32 UTC

[7/7] git commit: Fixes typo in Openstack driver (instance create without specified hwp)

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 <ma...@redhat.com>
Authored: Tue Apr 3 15:04:22 2012 +0300
Committer: marios <ma...@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