summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAlvaro Aleman <alv2412@googlemail.com>2016-10-08 23:03:22 +0200
committerToshio Kuratomi <a.badger@gmail.com>2017-08-10 12:43:16 -0700
commitfe5e1a4bc484f03df35d20cd05e8f08261287c72 (patch)
tree54a28a03f551246dd981dd2ccb7b34a85e36dffa /contrib
parentebb1d75ee088d0bd1e604b0011a270cd4968e50c (diff)
downloadansible-fe5e1a4bc484f03df35d20cd05e8f08261287c72.tar.gz
OS dynamic inventory: respect OS_CLOUD env var
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/openstack.py1
1 files changed, 1 insertions, 0 deletions
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(