summaryrefslogtreecommitdiffstats
path: root/src/lib/Options.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-04-25 12:23:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-04-25 12:23:31 +0000
commit31733381b3c2479f79a32a9ecab3ea7ded4d0e8b (patch)
tree9362aada7b361385c80f916495348d07664a63e6 /src/lib/Options.py
parentfbfe78fdca2b417844a2c70fcf0cb460c1655fcd (diff)
downloadbcfg2-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/Options.py')
-rw-r--r--src/lib/Options.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py
index f52c8bea8..92a71eaf7 100644
--- a/src/lib/Options.py
+++ b/src/lib/Options.py
@@ -155,6 +155,7 @@ class OptionSet(dict):
self[key] = val
list_split = lambda x:x.replace(' ','').split(',')
+flist_split = lambda x:list_split(x.replace(':', '').lower())
def colon_split(c_string):
if c_string:
return c_string.split(':')
@@ -223,7 +224,7 @@ CLIENT_FILE = Option('configure from a file rather than querying the server',
default=False, cmd='-f', odesc='<specification path>')
SERVER_FINGERPRINT = Option('Server Fingerprint', default=[], cmd='-F',
cf=('communication', 'fingerprint'),
- odesc='<f1,f2>', cook=list_split)
+ odesc='<f1,f2>', cook=flist_split)
CLIENT_QUICK = Option('disable some checksum verification', default=False,
cmd='-q', )
CLIENT_BACKGROUND = Option('Daemonize the agent', default=False, cmd='-i', )