[devstack] Copy bash_completion script during magnum installation

Copy magnum.bash_completion script to /etc/bash_completion.d
so that users/developers can take advantage of auto completion
of magnum commands.

Change-Id: I8d0ba953e7eb963be1d9e459c4015e882231e2c8
Closes-Bug: #1657004
This commit is contained in:
yatin 2017-01-17 10:17:49 +05:30
parent b8b40f5569
commit 7e59f53b59
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ function install_magnumclient {
if use_library_from_git "python-magnumclient"; then
git_clone_by_name "python-magnumclient"
setup_dev_lib "python-magnumclient"
sudo install -D -m 0644 -o $STACK_USER {${GITDIR["python-magnumclient"]}/tools/,/etc/bash_completion.d/}magnum.bash_completion
fi
}