Add option to fetch kuryr uri from env

Closes-Bug: #1621307
Change-Id: I594dce6d702c21397a728af99a5eb1ce118b5457
This commit is contained in:
Janonymous 2016-09-06 11:24:50 +05:30
parent 92353e6641
commit e41bad8e24
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ core_opts = [
'../')),
help=_('Directory where Kuryr python module is installed.')),
cfg.StrOpt('kuryr_uri',
default='http://127.0.0.1:23750',
default=os.environ.get('OS_KURYR_URI',
'http://127.0.0.1:23750'),
help=_('Kuryr URL for accessing Kuryr through json rpc.')),
cfg.StrOpt('capability_scope',
default=os.environ.get('CAPABILITY_SCOPE', 'local'),