Use OS_CLOUD environment variable

If OS_CLOUD env variable is set, that should be used.

Change-Id: If2578fcd069ba60e33b375c04ba2912affce53e0
This commit is contained in:
ramishra 2021-06-08 16:08:41 +05:30
parent 26159d9d78
commit ee6e66649f
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ opts = [
cfg.StrOpt('ansible_python_interpreter', default=None),
cfg.BoolOpt('debug', help='Print tracebacks for exceptions'),
cfg.StrOpt('serial', default=1),
cfg.StrOpt('os-cloud', default=None, help=('Provide authentication '
'with clouds.yaml file.')),
cfg.StrOpt('os-cloud', default=os.environ.get('OS_CLOUD'),
help=('Provide authentication with clouds.yaml file.')),
]