Add default password modification in devstack
Password in providers' configuration files will never be modified when doing installation with devstack.This will make the default swift provider not work properly when we change the default password in local.conf. Change-Id: Ic5636e9f87aac2cc177941cd27178a8d200ca8fa Closes-Bug: #1651110
This commit is contained in:
parent
95a725a2a3
commit
b7cd4c6d1e
|
@ -84,6 +84,13 @@ function configure_karbor_api {
|
|||
fi
|
||||
}
|
||||
|
||||
function configure_providers {
|
||||
if is_swift_enabled; then
|
||||
echo_summary "Configuring Swift Bank"
|
||||
iniset $KARBOR_CONF_DIR/providers.d/openstack-infra.conf swift_client swift_key $SERVICE_PASSWORD
|
||||
fi
|
||||
}
|
||||
|
||||
function create_karbor_cache_dir {
|
||||
|
||||
# Delete existing dir
|
||||
|
@ -108,6 +115,7 @@ if [[ "$Q_ENABLE_KARBOR" == "True" ]]; then
|
|||
echo_summary "Configuring Karbor"
|
||||
|
||||
configure_karbor_api
|
||||
configure_providers
|
||||
|
||||
echo export PYTHONPATH=\$PYTHONPATH:$KARBOR_DIR >> $RC_DIR/.localrc.auto
|
||||
|
||||
|
|
Loading…
Reference in New Issue