diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-26 13:19:58 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-26 13:19:58 -0500 |
commit | 75c6e2ac28a6f406d679a44dc399c5eb6d6d25e1 (patch) | |
tree | 28a76153bba1848017aaf750d5c9b14a0c6e122e /src/lib/Server/Admin/Snapshots.py | |
parent | 1ef9f2ce0af301cda6f21653def563450eaaf327 (diff) | |
download | bcfg2-75c6e2ac28a6f406d679a44dc399c5eb6d6d25e1.tar.gz bcfg2-75c6e2ac28a6f406d679a44dc399c5eb6d6d25e1.tar.bz2 bcfg2-75c6e2ac28a6f406d679a44dc399c5eb6d6d25e1.zip |
made bcfg2-admin accept -Q flag and a few others; general code cleanup
Diffstat (limited to 'src/lib/Server/Admin/Snapshots.py')
-rw-r--r-- | src/lib/Server/Admin/Snapshots.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/Server/Admin/Snapshots.py b/src/lib/Server/Admin/Snapshots.py index 052545b61..8bc56f1f1 100644 --- a/src/lib/Server/Admin/Snapshots.py +++ b/src/lib/Server/Admin/Snapshots.py @@ -23,11 +23,10 @@ class Snapshots(Bcfg2.Server.Admin.Mode): 'package': Package, 'snapshot': Snapshot} - def __init__(self, configfile): - Bcfg2.Server.Admin.Mode.__init__(self, configfile) - #self.session = Bcfg2.Server.Snapshots.setup_session(debug=True) - self.session = Bcfg2.Server.Snapshots.setup_session(configfile) - self.cfile = configfile + def __init__(self, setup): + Bcfg2.Server.Admin.Mode.__init__(self, setup) + self.session = Bcfg2.Server.Snapshots.setup_session(self.configfile) + self.cfile = self.configfile def __call__(self, args): Bcfg2.Server.Admin.Mode.__call__(self, args) |