Specify a cloud for openstack complete

there is a bug in openstackclient that is causing a password prompt

Related-Bug: 1619274
here.

Change-Id: I3aee25845ece846ed2b35aa242dc684b55ac2381
This commit is contained in:
Monty Taylor 2016-09-01 07:25:28 -05:00 committed by Sean Dague
parent 08b1475c2a
commit 6930ba312f

View File

@ -1383,7 +1383,12 @@ check_libs_from_git
# ===============
# Prepare bash completion for OSC
openstack complete | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null
#
# BUG: https://bugs.launchpad.net/python-openstackclient/+bug/1619274
# the os-cloud param should not be required but if we don't provide it
# then this command hangs indefinitely if something is wrong with
# default environment credentials.
openstack --os-cloud=devstack complete | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null
# If cinder is configured, set global_filter for PV devices
if is_service_enabled cinder; then