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 #1

Updated by Brétel Foudil over 11 years ago

  • Target version set to v0.4
Actions #2

Updated by Brétel Foudil about 11 years ago

  • Target version changed from v0.4 to v0.3

Done in 6da9a3a768bd2d0.

Actions #3

Updated by Brétel Foudil about 11 years ago

  • Status changed from New to Closed

see 6da9a3a768b

Actions

Also available in: Atom PDF