From 044213c789c4f1ee214da3d70f02352b1aaa8673 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 24 Apr 2013 15:44:06 -0400 Subject: Fixing unit tests --- src/lib/Bcfg2/Server/Admin/Viz.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/lib/Bcfg2/Server/Admin/Viz.py') diff --git a/src/lib/Bcfg2/Server/Admin/Viz.py b/src/lib/Bcfg2/Server/Admin/Viz.py index cdd8fd0cb..a29fdaceb 100644 --- a/src/lib/Bcfg2/Server/Admin/Viz.py +++ b/src/lib/Bcfg2/Server/Admin/Viz.py @@ -4,6 +4,7 @@ import getopt import Bcfg2.Server.Admin from Bcfg2.Utils import Executor + class Viz(Bcfg2.Server.Admin.MetadataCore): """ Produce graphviz diagrams of metadata structures """ __usage__ = ("[options]\n\n" @@ -79,16 +80,16 @@ class Viz(Bcfg2.Server.Admin.MetadataCore): self.metadata.viz(hosts, bundles, key, only_client, self.colors)] if key: - idata.extend([ - "\tsubgraph cluster_key {", - '\tstyle="filled";', - '\tcolor="lightblue";', - '\tBundle [ shape="septagon" ];', - '\tGroup [shape="ellipse"];', - '\tProfile [style="bold", shape="ellipse"];', - '\tHblock [label="Host1|Host2|Host3",shape="record"];', - '\tlabel="Key";', - "\t}"]) + idata.extend( + ["\tsubgraph cluster_key {", + '\tstyle="filled";', + '\tcolor="lightblue";', + '\tBundle [ shape="septagon" ];', + '\tGroup [shape="ellipse"];', + '\tProfile [style="bold", shape="ellipse"];', + '\tHblock [label="Host1|Host2|Host3",shape="record"];', + '\tlabel="Key";', + "\t}"]) idata.append("}") try: result = exc.run(cmd, inputdata=idata) -- cgit v1.2.3-1-g7c22