deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/5] git commit: CIMI: Pass the name parameter for Machine on create
Date Wed, 22 Feb 2012 12:33:39 GMT
CIMI: Pass the name parameter for Machine on create

This parameter was ignored whenever backend cloud has
the 'user_name' feature or not. Now the name of Machine
is properly passed to Deltacloud driver and set correctly.


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

Branch: refs/heads/master
Commit: ddffb674ca34818f58a96086a5c347456e2284b9
Parents: d3426a9
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Feb 22 13:25:29 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Wed Feb 22 13:25:29 2012 +0100

----------------------------------------------------------------------
 server/lib/cimi/model/machine.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/ddffb674/server/lib/cimi/model/machine.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/model/machine.rb b/server/lib/cimi/model/machine.rb
index 949a072..88c9f73 100644
--- a/server/lib/cimi/model/machine.rb
+++ b/server/lib/cimi/model/machine.rb
@@ -82,6 +82,7 @@ class CIMI::Model::Machine < CIMI::Model::Base
     hardware_profile_id = machine_template['machineConfig'][0]["href"].split('/').last
     image_id = machine_template['machineImage'][0]["href"].split('/').last
     additional_params = {}
+    additional_params[:name] =xml['name'][0] if xml['name']
     if machine_template.has_key? 'machineAdmin'
       additional_params[:keyname] = machine_template['machineAdmin'][0]["href"].split('/').last
     end


Mime
View raw message