NSXV3: ensure that devstack does not get invalid config
If a expected variable is not set then we would get the error: Configuration variable 'The' not found. Change-Id: I02e6e9a6b6281528b795adcb33989a4736cd175a
This commit is contained in:
parent
091cb5a148
commit
de4d3b98a1
@ -153,10 +153,13 @@ function neutron_plugin_configure_plugin_agent {
|
||||
}
|
||||
|
||||
function _nsxv3_ini_set {
|
||||
if [[ -z $1 || -z $2 ]]; then
|
||||
if [[ $3 != "" ]]; then
|
||||
die $LINENO $3
|
||||
fi
|
||||
fi
|
||||
if [[ $2 != "" ]]; then
|
||||
iniset /$Q_PLUGIN_CONF_FILE nsx_v3 $1 $2
|
||||
elif [[ $3 != "" ]]; then
|
||||
die $LINENO $3
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user