Browse Source

Use OS_CLOUD environment variable

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

Change-Id: If2578fcd069ba60e33b375c04ba2912affce53e0
changes/93/795293/1
ramishra 4 months ago
parent
commit
ee6e66649f
  1. 4
      scripts/tripleo-ansible-inventory

4
scripts/tripleo-ansible-inventory

@ -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.')),
]

Loading…
Cancel
Save