From: Michal Fojtik <[email protected]>

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

Signed-off-by: Michal fojtik <[email protected]>
---
 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

Reply via email to