Skip to content

Commit

Permalink
Merge "Do not access sections from config file if those do not exist …
Browse files Browse the repository at this point in the history
…Closes-Bug: 1483357" into R2.20
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 17, 2015
2 parents 8536be3 + 556e12b commit 4ab5fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opserver/opserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,8 @@ def _parse_args(self, args_str=' '.join(sys.argv[1:])):
if args.conf_file:
config = ConfigParser.SafeConfigParser()
config.read([args.conf_file])
defaults.update(dict(config.items("DEFAULTS")))

if 'DEFAULTS' in config.sections():
defaults.update(dict(config.items("DEFAULTS")))
if 'REDIS' in config.sections():
redis_opts.update(dict(config.items('REDIS')))
if 'DISCOVERY' in config.sections():
Expand Down

0 comments on commit 4ab5fd4

Please sign in to comment.