diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py index f653f53f3..084bcdd4c 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -365,6 +365,12 @@ class Cfg(Bcfg2.Server.Plugin.Plugin): elif action == 'deleted': if self.entries.has_key(configfile): self.entries[configfile].HandleEvent(event) + try: + os.stat(self.entries[configfile].repopath) + except: + logger.info("Removing service for ConfigFile %s" % \ + self.entries[configfile].path) + del self.entries[configfile] elif action in ['exists', 'endExist']: pass else: |