deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 2/3] Core: Fixed Rabbit namespacing issues with Addresses (DTACLOUD-500)
Date Wed, 27 Feb 2013 14:23:35 GMT
From: Michal Fojtik <mfojtik@redhat.com>

NOTE: A sinatra-rabbit >= 1.15 is required to make this work and to
fix the bug.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/deltacloud-core.gemspec            | 2 +-
 server/lib/cimi/collections/base.rb       | 4 ++++
 server/lib/deltacloud/collections/base.rb | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/server/deltacloud-core.gemspec b/server/deltacloud-core.gemspec
index a8ecce0..d52c970 100644
--- a/server/deltacloud-core.gemspec
+++ b/server/deltacloud-core.gemspec
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
   s.add_dependency('rake', '>= 0.8.7')
   s.add_dependency('haml', '>= 2.2.17')
   s.add_dependency('sinatra', '>= 1.3.0')
-  s.add_dependency('sinatra-rabbit', '>= 1.0.11')
+  s.add_dependency('sinatra-rabbit', '>= 1.1.5')
   s.add_dependency('rack', '>= 1.0.0')
   s.add_dependency('rack-accept')
   s.add_dependency('json_pure', '>= 1.5.0')
diff --git a/server/lib/cimi/collections/base.rb b/server/lib/cimi/collections/base.rb
index cf92143..eac1c70 100644
--- a/server/lib/cimi/collections/base.rb
+++ b/server/lib/cimi/collections/base.rb
@@ -18,6 +18,10 @@ require_relative '../models'
 module CIMI::Collections
   class Base < Sinatra::Base
 
+    Sinatra::Rabbit.configure do
+      enable :use_namespace
+    end
+
     include Sinatra::Rabbit
     include Sinatra::Rabbit::Features
     include CIMI::Model
diff --git a/server/lib/deltacloud/collections/base.rb b/server/lib/deltacloud/collections/base.rb
index fe8ba2b..e6d7333 100644
--- a/server/lib/deltacloud/collections/base.rb
+++ b/server/lib/deltacloud/collections/base.rb
@@ -16,6 +16,10 @@
 module Deltacloud::Collections
   class Base < Sinatra::Base
 
+    Sinatra::Rabbit.configure do
+      enable :use_namespace
+    end
+
     include Sinatra::Rabbit
     include Sinatra::Rabbit::Features
 
-- 
1.8.1.2


Mime
View raw message