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
This commit is contained in:
parent
68044c0245
commit
fac533e38d
@ -468,6 +468,7 @@ function install_cinder() {
|
||||
function install_cinderclient() {
|
||||
git_clone $CINDERCLIENT_REPO $CINDERCLIENT_DIR $CINDERCLIENT_BRANCH
|
||||
setup_develop $CINDERCLIENT_DIR
|
||||
sudo install -D -m 0644 -o $STACK_USER {$CINDERCLIENT_DIR/tools/,/etc/bash_completion.d/}cinder.bash_completion
|
||||
}
|
||||
|
||||
# apply config.d approach for cinder volumes directory
|
||||
|
@ -289,6 +289,7 @@ function init_keystone() {
|
||||
function install_keystoneclient() {
|
||||
git_clone $KEYSTONECLIENT_REPO $KEYSTONECLIENT_DIR $KEYSTONECLIENT_BRANCH
|
||||
setup_develop $KEYSTONECLIENT_DIR
|
||||
sudo install -D -m 0644 -o $STACK_USER {$KEYSTONECLIENT_DIR/tools/,/etc/bash_completion.d/}keystone.bash_completion
|
||||
}
|
||||
|
||||
# install_keystone() - Collect source and prepare
|
||||
|
@ -382,6 +382,7 @@ function install_neutron() {
|
||||
function install_neutronclient() {
|
||||
git_clone $NEUTRONCLIENT_REPO $NEUTRONCLIENT_DIR $NEUTRONCLIENT_BRANCH
|
||||
setup_develop $NEUTRONCLIENT_DIR
|
||||
sudo install -D -m 0644 -o $STACK_USER {$NEUTRONCLIENT_DIR/tools/,/etc/bash_completion.d/}neutron.bash_completion
|
||||
}
|
||||
|
||||
# install_neutron_agent_packages() - Collect source and prepare
|
||||
|
2
lib/nova
2
lib/nova
@ -645,6 +645,7 @@ function init_nova() {
|
||||
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 @@ function install_nova() {
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user