deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] Core: Fix Errno::EPIPE when graphviz is not installed
Date Mon, 30 Jul 2012 21:21:59 GMT
From: Michal Fojtik <mfojtik@redhat.com>

* InstanceStates collection throw EPIPE error when graphviz
  is not installed which breaks tests

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

diff --git a/server/lib/deltacloud/collections/instance_states.rb b/server/lib/deltacloud/collections/instance_states.rb
index d5be6ec..6e16568 100644
--- a/server/lib/deltacloud/collections/instance_states.rb
+++ b/server/lib/deltacloud/collections/instance_states.rb
@@ -49,7 +49,7 @@ module Deltacloud::Collections
                 stdin.write( gv )
                 stdin.close()
                 png = stdout.read
-              end
+              end rescue Errno::EPIPE
               content_type 'image/png'
               png
             end
-- 
1.7.11.3


Mime
View raw message