]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add error reporting to generate_sample.sh on import failure.
authorAnton Frolov <anfrolov@mirantis.com>
Fri, 31 May 2013 10:27:49 +0000 (14:27 +0400)
committerAnton Frolov <anfrolov@mirantis.com>
Fri, 31 May 2013 10:54:11 +0000 (14:54 +0400)
commit27e261376fc03655a5f90603078a3a8623ddf32f
tree3dd0427f27e84484588de1711c627ef561de3ee8
parentf30afa6e70612b004a3da82d08a7e5fd0fb1a17d
Add error reporting to generate_sample.sh on import failure.

Currently tools/conf/generate_sample.sh collect options from project
modules by importing each module and looking at it's global variables
for instances of classes derived from cfg.Opt (or lists of such
instances). Sometimes this import can fail due to various reasons,
cfg.DuplicateOptError for example. And if import fails no options
from imported module written to sample config file. Error reporting
will at least warn user that some of options didn't get into sample
config.

Change-Id: I831464b1c1575c106d866a936a50ec74b2d44e59
Fixes: bug #1182611
tools/conf/extract_opts.py