Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
support config file
[doctor.git]
/
tests
/
config.py
diff --git
a/tests/config.py
b/tests/config.py
index
7a0bef2
..
3cacd0a
100644
(file)
--- a/
tests/config.py
+++ b/
tests/config.py
@@
-7,6
+7,7
@@
# http://www.apache.org/licenses/LICENSE-2.0
\r
##############################################################################
\r
import itertools
\r
# http://www.apache.org/licenses/LICENSE-2.0
\r
##############################################################################
\r
import itertools
\r
+
\r
from oslo_config import cfg
\r
\r
import image
\r
from oslo_config import cfg
\r
\r
import image
\r
@@
-23,7
+24,7
@@
def list_opts():
]
\r
\r
\r
]
\r
\r
\r
-def prepare_conf(
conf
=None):
\r
+def prepare_conf(
args=None, conf=None, config_files
=None):
\r
if conf is None:
\r
conf = cfg.ConfigOpts()
\r
\r
if conf is None:
\r
conf = cfg.ConfigOpts()
\r
\r
@@
-31,4
+32,7
@@
def prepare_conf(conf=None):
conf.register_opts(list(options),
\r
group=None if group == 'DEFAULT' else group)
\r
\r
conf.register_opts(list(options),
\r
group=None if group == 'DEFAULT' else group)
\r
\r
+ conf(args, project='doctor', validate_default_values=True,
\r
+ default_config_files=config_files)
\r
+
\r
return conf
\r
return conf
\r