summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Snapshots.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Snapshots.py')
-rw-r--r--src/lib/Server/Plugins/Snapshots.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Snapshots.py b/src/lib/Server/Plugins/Snapshots.py
index 40a153034..25e8770ca 100644
--- a/src/lib/Server/Plugins/Snapshots.py
+++ b/src/lib/Server/Plugins/Snapshots.py
@@ -6,6 +6,8 @@ import Bcfg2.Server.Snapshots
from Bcfg2.Server.Snapshots.model import Snapshot
import time
+ftypes = ['ConfigFile', 'SymLink', 'Directory']
+
class Snapshots(Bcfg2.Server.Plugin.Statistics,
Bcfg2.Server.Plugin.Plugin):
name = 'Snapshots'
@@ -27,7 +29,9 @@ class Snapshots(Bcfg2.Server.Plugin.Statistics,
extra = dict([('Package', dict()), ('Service', dict()),
('Path', dict())])
pdisp = {'Package': ['name', 'type', 'version'],
- 'Service': ['name', 'type', 'status']}
+ 'Service': ['name', 'type', 'status'],
+ 'ConfigFile': ['name', 'owner', 'group', 'perms']}
+
for entry in xdata.find('.//Bad'):
if entry.tag not in pdisp:
print "Not Found", entry.tag, entry.get('name')