From 27e1b2cf031f6bcd58a3ebd74e5acf25f1ba2009 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sat, 7 Mar 2009 16:47:55 +0000 Subject: Fix tb in Viz (Reported by Michael Jinks) Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5110 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Admin/Viz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Server/Admin/Viz.py b/src/lib/Server/Admin/Viz.py index f973e90c5..ca8eee773 100644 --- a/src/lib/Server/Admin/Viz.py +++ b/src/lib/Server/Admin/Viz.py @@ -72,8 +72,8 @@ class Viz(Bcfg2.Server.Admin.MetadataCore): cmd = "dot -Tpng" if output: cmd += " -o %s" % output - dotpipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, - stdout=subprocess.PIPE, close_fds=True) + dotpipe = Popen(cmd, shell=True, stdin=PIPE, + stdout=PIPE, close_fds=True) try: dotpipe.stdin.write("digraph groups {\n") except: -- cgit v1.2.3-1-g7c22