diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-04-25 12:23:31 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-04-25 12:23:31 +0000 |
commit | 31733381b3c2479f79a32a9ecab3ea7ded4d0e8b (patch) | |
tree | 9362aada7b361385c80f916495348d07664a63e6 /src/lib/Server/Plugins/Metadata.py | |
parent | fbfe78fdca2b417844a2c70fcf0cb460c1655fcd (diff) | |
download | bcfg2-31733381b3c2479f79a32a9ecab3ea7ded4d0e8b.tar.gz bcfg2-31733381b3c2479f79a32a9ecab3ea7ded4d0e8b.tar.bz2 bcfg2-31733381b3c2479f79a32a9ecab3ea7ded4d0e8b.zip |
auto-reformat server fingerprint if needed (Resolves Ticket #546)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4560 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Metadata.py')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index beaa1cc81..25a6bad1e 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -31,7 +31,7 @@ class ClientMetadata(object): class ProbeSet(Bcfg2.Server.Plugin.EntrySet): def __init__(self, path, fam): - fpattern = '[A-Za-z]+' + fpattern = '[A-Za-z_\-]+' Bcfg2.Server.Plugin.EntrySet.__init__(self, fpattern, path, True, Bcfg2.Server.Plugin.SpecificData) fam.AddMonitor(path, self) @@ -262,7 +262,7 @@ class Metadata(Bcfg2.Server.Plugin.Plugin): try: datafile = open("%s/%s" % (self.data, 'probed.xml'), 'w') except IOError: - self.logger.error("Failed to write clients.xml") + self.logger.error("Failed to write probed.xml") raise MetadataRuntimeError datafile.write(data) self.pdirty = False |