summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin/Viz.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Admin/Viz.py')
-rw-r--r--src/lib/Server/Admin/Viz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Viz.py b/src/lib/Server/Admin/Viz.py
index bc2d8665c..3ebe25f92 100644
--- a/src/lib/Server/Admin/Viz.py
+++ b/src/lib/Server/Admin/Viz.py
@@ -5,8 +5,8 @@ import Bcfg2.Server.Admin
class Viz(Bcfg2.Server.Admin.Mode):
__shorthelp__ = '''bcfg2-admin viz [--includehosts] [--includebundles] [--includekey] [-o output.png] [--raw]'''
__longhelp__ = __shorthelp__ + '\n\tProduce graphviz diagrams of metadata structures'
- def __init__(self, configfile):
- Bcfg2.Server.Admin.Mode.__init__(self, configfile)
+ def __init__(self):
+ Bcfg2.Server.Admin.Mode.__init__(self)
self.colors = ['steelblue1', 'chartreuse', 'gold', 'magenta',
'indianred1', 'limegreen', 'orange1', 'lightblue2',
'green1', 'blue1', 'yellow1', 'darkturquoise', 'gray66']
@@ -38,7 +38,7 @@ class Viz(Bcfg2.Server.Admin.Mode):
kset = True
elif opt in ("-o", "--outfile"):
outputfile = arg
- repopath = self.get_repo_path()
+ repopath = self.repo_path
data = self.Visualize(repopath, rset, hset, bset, kset)
if outputfile: