Use dsconf to add lines to devstack localrc

In some situations there are additional sections in the devstack
localrc file and they may be at the end of the file. This caused
errors as the desired changes would not be placed in the
'[[local|localrc]]' section of the file.

Using 'dsconf setlc_raw' solves that issue.

Change-Id: If4bc197d685e20fadbc5ffbd2151cae9d8129135
This commit is contained in:
John L. Villalovos 2017-02-15 09:02:40 -08:00
parent 1dfbfa47e4
commit 8457291224
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ function devstack_localrc {
local path=$(localrc_path $where)
shift
echo "Adding settings to $where at $path"
echo "# added by $settings_file" >> $path
echo "$@" >> $path
dsconf setlc_raw $path "# added by $settings_file"
dsconf setlc_raw $path "$@"
}
function fetch_grenade_plugins {