diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-10-10 14:14:44 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-10-10 14:14:44 +0000 |
commit | d49ec0cce12b8da989b7efe75d612b0421155f63 (patch) | |
tree | 318947c46562ff5e9356a202b4066ed4368ba4cc /src/lib/Server/Plugins/Cfg.py | |
parent | 4149b1ac63408f0c81bbb1ad56080c7c1e68f7af (diff) | |
download | bcfg2-d49ec0cce12b8da989b7efe75d612b0421155f63.tar.gz bcfg2-d49ec0cce12b8da989b7efe75d612b0421155f63.tar.bz2 bcfg2-d49ec0cce12b8da989b7efe75d612b0421155f63.zip |
Plugin updates: Account sudoers perms, Cfg recreate bug, Deps error path
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3784 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Cfg.py')
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py index afda27cde..987cc2da8 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -133,15 +133,17 @@ class ConfigFileEntry(object): return try: - self.fragments.append(FileEntry(self.path, name)) - self.fragments.sort() + if name not in [ent.name for ent in self.fragments]: + self.fragments.append(FileEntry(self.path, name)) + self.fragments.sort() except SpecificityError: return def HandleEvent(self, event): '''Handle FAM updates''' action = event.code2str() - #logger.debug("Got event %s for %s" % (action, event.filename)) + #if self.path.endswith('/etc/passwd'): + # logger.debug("Got event %s for %s" % (action, event.filename)) if event.filename in [':info', 'info']: if action in ['changed', 'exists', 'created']: return self.read_info(event.filename) |