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 2012/07/19 15:02:45 UTC

[PATCH core 12/16] Core: Added missing require to instance_states collection

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/lib/deltacloud/collections/instance_states.rb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server/lib/deltacloud/collections/instance_states.rb b/server/lib/deltacloud/collections/instance_states.rb
index 74328a8..d5be6ec 100644
--- a/server/lib/deltacloud/collections/instance_states.rb
+++ b/server/lib/deltacloud/collections/instance_states.rb
@@ -13,7 +13,10 @@
 # License for the specific language governing permissions and limitations
 # under the License.
 
+require 'open3'
+
 module Deltacloud::Collections
+
   class InstanceStates < Base
 
     set :capability, lambda { |m| !driver.send(m).nil? }
@@ -42,7 +45,7 @@ module Deltacloud::Collections
               gv = erb(:"instance_states/show")
               png =  ''
               cmd = 'dot -Kdot -Gpad="0.2,0.2" -Gsize="5.0,8.0" -Gdpi="180" -Tpng'
-              Open3.popen3( cmd ) do |stdin, stdout, stderr|
+              ::Open3.popen3( cmd ) do |stdin, stdout, stderr|
                 stdin.write( gv )
                 stdin.close()
                 png = stdout.read
-- 
1.7.10.2