From a881fba2f2bd4dfb3d7aac1015719f490cbbc9d4 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 5 Mar 2009 22:45:52 +0000 Subject: Snapshots: improve generality of the importer git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5106 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Snapshots.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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') -- cgit v1.2.3-1-g7c22