deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: passing realm option when creating a new VM
Date Thu, 07 Feb 2013 14:01:02 GMT
Updated Branches:
  refs/heads/master 92a313b7f -> 49d668b00


passing realm option when creating a new VM


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

Branch: refs/heads/master
Commit: 49d668b00abb7171078e613c599dea783ab0e2ca
Parents: 92a313b
Author: Oved Ourfali <oourfali@redhat.com>
Authored: Thu Feb 7 15:20:18 2013 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Feb 7 15:00:48 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/49d668b0/server/lib/cimi/models/machine.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/machine.rb b/server/lib/cimi/models/machine.rb
index a44332a..0e180ce 100644
--- a/server/lib/cimi/models/machine.rb
+++ b/server/lib/cimi/models/machine.rb
@@ -70,6 +70,7 @@ class CIMI::Model::Machine < CIMI::Model::Base
       additional_params[:initial_state] = machine_template["initialState"].strip
     end
     additional_params[:name] = json['name'] if json['name']
+    additional_params[:realm_id] = json['realm'] if json['realm']
     instance = context.driver.create_instance(context.credentials, image_id, {
       :hwp_id => hardware_profile_id
     }.merge(additional_params))
@@ -103,6 +104,7 @@ class CIMI::Model::Machine < CIMI::Model::Base
       additional_params[:initial_state] = xml["machineTemplate"][0]["initialState"].first.strip
     end
     additional_params[:name] = xml['name'][0] if xml['name']
+    additional_params[:realm_id] = xml['realm'][0] if xml['realm']
     instance = context.driver.create_instance(context.credentials, image_id, {
       :hwp_id => hardware_profile_id
     }.merge(additional_params))


Mime
View raw message