diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-08-08 10:03:35 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-08-08 10:03:35 -0400 |
commit | 7f4e30364d024f01c8770d2efe78873386318c11 (patch) | |
tree | 67b43b5c43142c31fb115bcbb8b1c24c89326326 | |
parent | 835a434bc68fd497aad2d3a5db78d7ce83603e00 (diff) | |
download | bcfg2-7f4e30364d024f01c8770d2efe78873386318c11.tar.gz bcfg2-7f4e30364d024f01c8770d2efe78873386318c11.tar.bz2 bcfg2-7f4e30364d024f01c8770d2efe78873386318c11.zip |
got rid of blank line output when using bcfg2-admin viz with the -o option
-rw-r--r-- | src/lib/Server/Admin/Viz.py | 3 |
1 files changed, 2 insertions, 1 deletions
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, |