summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-01-10 15:51:44 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-01-10 15:51:44 +0000
commit0a329314a49ae5ca6286d747eac0d9c5fffcec18 (patch)
tree45ff65aabf39ca9128a5991692d31cf44208a1d9 /src/lib
parent41f462a21a57b9daced95f17163cc2c4bdde0632 (diff)
downloadbcfg2-0a329314a49ae5ca6286d747eac0d9c5fffcec18.tar.gz
bcfg2-0a329314a49ae5ca6286d747eac0d9c5fffcec18.tar.bz2
bcfg2-0a329314a49ae5ca6286d747eac0d9c5fffcec18.zip
fix for files with - in the name
(Logical change 1.181) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@777 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Generators/Cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py
index fc41ab231..e4c27174f 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))?$')