summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r--src/lib/Server/Admin/Fingerprint.py4
-rw-r--r--src/lib/Server/Admin/Minestruct.py4
-rw-r--r--src/lib/Server/Admin/Tidy.py4
-rw-r--r--src/lib/Server/Admin/Viz.py3
4 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Fingerprint.py b/src/lib/Server/Admin/Fingerprint.py
index bf50f0aaa..aff8d42bf 100644
--- a/src/lib/Server/Admin/Fingerprint.py
+++ b/src/lib/Server/Admin/Fingerprint.py
@@ -7,6 +7,10 @@ class Fingerprint(Bcfg2.Server.Admin.Mode):
'''Produce server key fingerprint'''
__shorthelp__ = 'bcfg2-admin fingerprint'
__longhelp__ = __shorthelp__ + '\n\tPrint the server certificate fingerprint'
+
+ def __init__(self, cfile):
+ Bcfg2.Server.Admin.Mode.__init__(self, cfile)
+
def __call__(self, args):
Bcfg2.Server.Admin.Mode.__call__(self, args)
print self.getFingerprint()
diff --git a/src/lib/Server/Admin/Minestruct.py b/src/lib/Server/Admin/Minestruct.py
index bd251dabf..9e91ff33e 100644
--- a/src/lib/Server/Admin/Minestruct.py
+++ b/src/lib/Server/Admin/Minestruct.py
@@ -4,6 +4,10 @@ class Minestruct(Bcfg2.Server.Admin.Mode):
'''Pull extra entries out of statistics'''
__shorthelp__ = 'bcfg2-admin minestruct <client>'
__longhelp__ = __shorthelp__ + '\n\tExtract extra entry lists from statistics'
+
+ def __init__(self, cfile):
+ Bcfg2.Server.Admin.Mode.__init__(self, cfile)
+
def __call__(self, args):
Bcfg2.Server.Admin.Mode.__call__(self, args)
if len(args) != 1:
diff --git a/src/lib/Server/Admin/Tidy.py b/src/lib/Server/Admin/Tidy.py
index aafd7b9a7..287b34310 100644
--- a/src/lib/Server/Admin/Tidy.py
+++ b/src/lib/Server/Admin/Tidy.py
@@ -4,6 +4,10 @@ import re, os, socket
class Tidy(Bcfg2.Server.Admin.Mode):
__shorthelp__ = 'bcfg2-admin tidy [-f] [-I]'
__longhelp__ = __shorthelp__ + '\n\tClean up useless files in the repo'
+
+ def __init__(self, cfile):
+ Bcfg2.Server.Admin.Mode.__init__(self, cfile)
+
def __call__(self, args):
Bcfg2.Server.Admin.Mode.__call__(self, args)
badfiles = self.buildTidyList()
diff --git a/src/lib/Server/Admin/Viz.py b/src/lib/Server/Admin/Viz.py
index f7daa9453..dfc8b3392 100644
--- a/src/lib/Server/Admin/Viz.py
+++ b/src/lib/Server/Admin/Viz.py
@@ -10,6 +10,9 @@ class Viz(Bcfg2.Server.Admin.Mode):
'indianred1', 'limegreen', 'orange1', 'lightblue2',
'green1', 'blue1', 'yellow1', 'darkturquoise', 'gray66']
+ def __init__(self, cfile):
+ Bcfg2.Server.Admin.Mode.__init__(self, cfile)
+
def __call__(self, args):
Bcfg2.Server.Admin.Mode.__call__(self, args)
# First get options to the 'viz' subcommand