diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-04-05 14:32:29 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-04-06 19:35:21 -0500 |
commit | 2d90970d7da08e3c89fe67f4ebf8d0c1cdafeb20 (patch) | |
tree | 32bd5e0d28bb6a154f630b6a4f91c55c95c936cc /src/lib/Server/Plugins/Snapshots.py | |
parent | 9d8f65a64a5319f3e48dd43e2ea3a3ac4c051f9c (diff) | |
download | bcfg2-2d90970d7da08e3c89fe67f4ebf8d0c1cdafeb20.tar.gz bcfg2-2d90970d7da08e3c89fe67f4ebf8d0c1cdafeb20.tar.bz2 bcfg2-2d90970d7da08e3c89fe67f4ebf8d0c1cdafeb20.zip |
Plugins: PY3K + PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Plugins/Snapshots.py')
-rw-r--r-- | src/lib/Server/Plugins/Snapshots.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Snapshots.py b/src/lib/Server/Plugins/Snapshots.py index a4489ae95..a1f72ba3e 100644 --- a/src/lib/Server/Plugins/Snapshots.py +++ b/src/lib/Server/Plugins/Snapshots.py @@ -24,6 +24,7 @@ datafields = { 'SymLink': ['to'], } + def build_snap_ent(entry): basefields = [] if entry.tag in ['Package', 'Service']: @@ -119,12 +120,12 @@ class Snapshots(Bcfg2.Server.Plugin.Statistics, data['name'] = ename extra[entry.tag][ename] = data else: - print "extra", entry.tag, entry.get('name') + print("extra", entry.tag, entry.get('name')) t2 = time.time() snap = Snapshot.from_data(self.session, correct, revision, metadata, entries, extra) self.session.add(snap) self.session.commit() t3 = time.time() - logger.info("Snapshot storage took %fs" % (t3-t2)) + logger.info("Snapshot storage took %fs" % (t3 - t2)) return True |