summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-05 22:45:52 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-05 22:45:52 +0000
commita881fba2f2bd4dfb3d7aac1015719f490cbbc9d4 (patch)
tree3ecb071450bea1db37f484a5589d29747212976c
parent5c701e5172176742da4621322bdcc285c8b53bc7 (diff)
downloadbcfg2-a881fba2f2bd4dfb3d7aac1015719f490cbbc9d4.tar.gz
bcfg2-a881fba2f2bd4dfb3d7aac1015719f490cbbc9d4.tar.bz2
bcfg2-a881fba2f2bd4dfb3d7aac1015719f490cbbc9d4.zip
Snapshots: improve generality of the importer
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5106 ce84e21b-d406-0410-9b95-82705330c041
-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')