OS dynamic inventory: respect OS_CLOUD env var

This commit is contained in:
Alvaro Aleman 2016-10-08 23:03:22 +02:00 committed by Toshio Kuratomi
parent ebb1d75ee0
commit fe5e1a4bc4

View file

@ -219,6 +219,7 @@ def main():
refresh=args.refresh,
config_files=config_files,
private=args.private,
cloud=os.environ.get('OS_CLOUD')
)
if hasattr(shade.inventory.OpenStackInventory, 'extra_config'):
inventory_args.update(dict(