From fe5e1a4bc484f03df35d20cd05e8f08261287c72 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Sat, 8 Oct 2016 23:03:22 +0200 Subject: [PATCH] OS dynamic inventory: respect OS_CLOUD env var --- contrib/inventory/openstack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/inventory/openstack.py b/contrib/inventory/openstack.py index b7beb95a7d..9610d5fdf0 100755 --- a/contrib/inventory/openstack.py +++ b/contrib/inventory/openstack.py @@ -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(