You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/11/29 14:44:54 UTC
[PATCH core 02/10] CIMI: Added no_content helper for Machine actions
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/lib/cimi/helpers/cimi_helper.rb | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/server/lib/cimi/helpers/cimi_helper.rb b/server/lib/cimi/helpers/cimi_helper.rb
index b55ac3b..f67460b 100644
--- a/server/lib/cimi/helpers/cimi_helper.rb
+++ b/server/lib/cimi/helpers/cimi_helper.rb
@@ -14,8 +14,16 @@
# under the License.
module CIMIHelper
+
+ def no_content_with_status(code=200)
+ body ''
+ status code
+ end
+
end
+helpers CIMIHelper
+
class Array
def to_xml_cimi_collection(_self)
model_name = first.class.xml_tag_name
--
1.7.4.4