Project

General

Profile

Actions

Bug #5601

closed

check jenkinsfarm config file (or define defaults)

Added by Brétel Foudil over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
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

Also available in: Atom PDF