Actions
Bug #5601
closedcheck jenkinsfarm config file (or define defaults)
Start date:
11/29/2013
Due date:
% Done:
0%
Estimated time:
Description
Suppose the configuration file misses a parameter (say shared_tmp
), the command-line tool will probably crash at some point.
We should either check if all necessary parameters are defined, or define defaults.
Options for defining defaults must use the readfp()
method.
We could then either stick to our etc/default/
convention, or use a StringIO:
default_cfg = StringIO("""\ # the conf """) config = ConfigParser.ConfigParser() config.readfp(default_cfg) config.read('etc/jenkinsfarm.cfg')
Actions