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 Fenix and sample implementation accordingly
[doctor.git]
/
doctor_tests
/
admin_tool
/
__init__.py
diff --git
a/doctor_tests/admin_tool/__init__.py
b/doctor_tests/admin_tool/__init__.py
index
e8b1281
..
3417a33
100644
(file)
--- a/
doctor_tests/admin_tool/__init__.py
+++ b/
doctor_tests/admin_tool/__init__.py
@@
-8,16
+8,16
@@
##############################################################################
from oslo_config import cfg
from oslo_utils import importutils
##############################################################################
from oslo_config import cfg
from oslo_utils import importutils
-
+import os
OPTS = [
cfg.StrOpt('type',
OPTS = [
cfg.StrOpt('type',
- default=
'sample'
,
- choices=['sample'],
+ default=
os.environ.get('ADMIN_TOOL_TYPE', 'sample')
,
+ choices=['sample'
, 'fenix'
],
help='the component of doctor admin_tool',
required=True),
cfg.StrOpt('ip',
help='the component of doctor admin_tool',
required=True),
cfg.StrOpt('ip',
- default='
127.0.0.1
',
+ default='
0.0.0.0
',
help='the ip of admin_tool',
required=True),
cfg.IntOpt('port',
help='the ip of admin_tool',
required=True),
cfg.IntOpt('port',