Configure bash completion
Add bash completion rules to the /etc/bash_completion.d from the
cinder, neutron, keystone, nova and nova-manage.
This is very fast operation and makes the cli usage easier.
Change-Id: Icdcdaf55d58efaaa1afe25fd55f088bf7dc8b3f1
diff --git a/lib/nova b/lib/nova
index 842c098..bb9bca2 100644
--- a/lib/nova
+++ b/lib/nova
@@ -645,6 +645,7 @@
function install_novaclient() {
git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH
setup_develop $NOVACLIENT_DIR
+ sudo install -D -m 0644 -o $STACK_USER {$NOVACLIENT_DIR/tools/,/etc/bash_completion.d/}nova.bash_completion
}
# install_nova() - Collect source and prepare
@@ -682,6 +683,7 @@
git_clone $NOVA_REPO $NOVA_DIR $NOVA_BRANCH
setup_develop $NOVA_DIR
+ sudo install -D -m 0644 -o $STACK_USER {$NOVA_DIR/tools/,/etc/bash_completion.d/}nova-manage.bash_completion
}
# start_nova_api() - Start the API process ahead of other things