deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Core: Fix Errno::EPIPE when graphviz is not installed
Date Wed, 01 Aug 2012 12:51:57 GMT
Updated Branches:
  refs/heads/master 45d3aa03d -> 1fe2814f6


Core: Fix Errno::EPIPE when graphviz is not installed

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

Signed-off-by: Michal fojtik <mfojtik@redhat.com>


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/1fe2814f
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/1fe2814f
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/1fe2814f

Branch: refs/heads/master
Commit: 1fe2814f66df48b4915a0257f0c17b994582a35e
Parents: 45d3aa0
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Jul 30 23:21:59 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Wed Aug 1 14:52:44 2012 +0200

----------------------------------------------------------------------
 .../lib/deltacloud/collections/instance_states.rb  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1fe2814f/server/lib/deltacloud/collections/instance_states.rb
----------------------------------------------------------------------
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


Mime
View raw message