From 7f4e30364d024f01c8770d2efe78873386318c11 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 8 Aug 2011 10:03:35 -0400 Subject: got rid of blank line output when using bcfg2-admin viz with the -o option --- src/lib/Server/Admin/Viz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Server/Admin/Viz.py b/src/lib/Server/Admin/Viz.py index 2d9b4ade2..fe6a8a7c2 100644 --- a/src/lib/Server/Admin/Viz.py +++ b/src/lib/Server/Admin/Viz.py @@ -75,7 +75,8 @@ class Viz(Bcfg2.Server.Admin.MetadataCore): data = self.Visualize(self.get_repo_path(), hset, bset, kset, only_client, outputfile) - print(data) + if data: + print(data) raise SystemExit(0) def Visualize(self, repopath, hosts=False, -- cgit v1.2.3-1-g7c22