diff options
author | Brian Pellin <bpellin@mcs.anl.gov> | 2005-01-10 17:14:41 +0000 |
---|---|---|
committer | Brian Pellin <bpellin@mcs.anl.gov> | 2005-01-10 17:14:41 +0000 |
commit | e6fe5b1515724e6617af45f2de3cabe5aa67bbf0 (patch) | |
tree | bd8d5aad0b675f7d2ae5835d27ce05f102ff488f /src | |
parent | acdd636b4c10160b22b2451baca991bd47353ec1 (diff) | |
download | bcfg2-e6fe5b1515724e6617af45f2de3cabe5aa67bbf0.tar.gz bcfg2-e6fe5b1515724e6617af45f2de3cabe5aa67bbf0.tar.bz2 bcfg2-e6fe5b1515724e6617af45f2de3cabe5aa67bbf0.zip |
Fixed escaping on hyphen in regex.
(Logical change 1.182)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@779 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Generators/Cfg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py index e4c27174f..14e46b7f8 100644 --- a/src/lib/Server/Generators/Cfg.py +++ b/src/lib/Server/Generators/Cfg.py @@ -37,7 +37,7 @@ class FileEntry(FileBacked): class ConfigFileEntry(object): '''ConfigFileEntry is a repository entry for a single file, containing all data for all clients.''' - specific = regcompile('(.*/)(?P<filename>[\w-.]+)\.((H_(?P<hostname>\S+))|' + + specific = regcompile('(.*/)(?P<filename>[\w\-.]+)\.((H_(?P<hostname>\S+))|' + '(B(?P<bprio>\d+)_(?P<bundle>\S+))|(A(?P<aprio>\d+)_(?P<attr>\S+))|' + '(I(?P<iprio>\d+)_(?P<image>\S+))|(C(?P<cprio>\d+)_(?P<class>\S+)))' + '(\.(?P<op>cat|udiff))?$') |