k8s_resource_generation: fix parameter handling

Due to assigning CA_CERTIFICATE_PATH as the CA_CERTIFICATE_PATH if a
path is not passed, if the value was unset, we'd get a null value which
would be passed to the devstack instead of the intended "".

Closes-Bug: #1765639
Change-Id: I6f51ebd0ac7879786a3827fd37fe4953e410a843
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
This commit is contained in:
Antoni Segura Puimedon 2018-04-25 19:41:33 +02:00
parent eaf599f34e
commit 15172507e4
No known key found for this signature in database
GPG Key ID: 9B08FFD846853B9D
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ source "$DIR/../devstack/lib/kuryr_kubernetes"
OUTPUT_DIR=${1:-.}
CONTROLLER_CONF_PATH=${2:-""}
CNI_CONF_PATH=${3:-$CONTROLLER_CONF_PATH}
CA_CERTIFICATE_PATH=${CA_CERTIFICATE_PATH:-""}
CA_CERTIFICATE_PATH=${4:-$CA_CERTIFICATE_PATH}
if [ -z $CONTROLLER_CONF_PATH ]; then