You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2012/11/29 23:10:10 UTC
[1/2] git commit: CIMI - fix nits - volumes create return 201,
volume attach is POST
Updated Branches:
refs/heads/master fdb1db1f8 -> f8cb26459
CIMI - fix nits - volumes create return 201, volume attach is POST
Signed-off-by: marios <ma...@redhat.com>
TrackedAt: http://tracker-mfojtik.rhcloud.com/patch/32fa2fb6bebbcadfeeed2c16ed355234fa7fa77c
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/f8cb2645
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/f8cb2645
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/f8cb2645
Branch: refs/heads/master
Commit: f8cb26459df2ab661d69067d44b119288a88ad17
Parents: ecbe9fa
Author: marios <ma...@redhat.com>
Authored: Thu Nov 29 16:24:54 2012 +0200
Committer: David Lutterkort <lu...@redhat.com>
Committed: Thu Nov 29 13:55:39 2012 -0800
----------------------------------------------------------------------
server/lib/cimi/collections/machines.rb | 2 +-
server/lib/cimi/collections/volumes.rb | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f8cb2645/server/lib/cimi/collections/machines.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/collections/machines.rb b/server/lib/cimi/collections/machines.rb
index 5247577..20fcfe0 100644
--- a/server/lib/cimi/collections/machines.rb
+++ b/server/lib/cimi/collections/machines.rb
@@ -171,7 +171,7 @@ module CIMI::Collections
end
- operation :volume_attach, :http_method => :put, :with_capability => :attach_storage_volume do
+ operation :volume_attach, :http_method => :post, :with_capability => :attach_storage_volume do
description "Attach CIMI Volume(s) to a machine."
param :id, :string, :required
control do
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f8cb2645/server/lib/cimi/collections/volumes.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/collections/volumes.rb b/server/lib/cimi/collections/volumes.rb
index a05c396..32912c0 100644
--- a/server/lib/cimi/collections/volumes.rb
+++ b/server/lib/cimi/collections/volumes.rb
@@ -57,6 +57,7 @@ module CIMI::Collections
when :xml
new_volume = Volume.create_from_xml(request.body.read, self)
end
+ status 201
respond_to do |format|
format.json { new_volume.to_json }
format.xml { new_volume.to_xml }