diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-04-11 18:37:22 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-04-11 18:37:22 +0000 |
commit | ddb40a5a09dee2340922085b3643e40b2e5d2d20 (patch) | |
tree | 47caa3e9ba6724d4c588d1dd6303ac846e0abb0f /src/lib/Server | |
parent | ada003add2413f90794ec43f6a3ea03d45d25072 (diff) | |
download | bcfg2-ddb40a5a09dee2340922085b3643e40b2e5d2d20.tar.gz bcfg2-ddb40a5a09dee2340922085b3643e40b2e5d2d20.tar.bz2 bcfg2-ddb40a5a09dee2340922085b3643e40b2e5d2d20.zip |
Implement ConfigFile mtime assertion (Resolves Ticket #421)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3031 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py index c75afbc18..084a14b3c 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -79,7 +79,8 @@ class ConfigFileEntry(object): all data for all clients.''' info = re.compile('^owner:(\s)*(?P<owner>\S+)|group:(\s)*(?P<group>\S+)|' + 'perms:(\s)*(?P<perms>\w+)|encoding:(\s)*(?P<encoding>\w+)|' + - '(?P<paranoid>paranoid(\s)*)|interpolate:(\s)*(?P<interpolate>\w+)(\s)*$') + '(?P<paranoid>paranoid(\s)*)|mtime:(\s)*(?P<mtime>\w+)|' + 'interpolate:(\s)*(?P<interpolate>\w+)(\s)*$') iignore = re.compile('^\S*$') def __init__(self, path, repopath): @@ -118,6 +119,8 @@ class ConfigFileEntry(object): self.paranoid = True elif mgd['interpolate'] in ["True", "true"]: self.interpolate = True + elif mgd['mtime']: + self.metadata['mtime'] = mgd['mtime'] def AddEntry(self, name): '''add new file additions for a single cf file''' |