SolaceProducts/pubsubplus-openshift-quickstart

Test for project existence in deploy.sh does not use parameterized project name

Closed this issue · 1 comments

The deploy.sh code that tests for the pre-existence of the specified project does not actually check the project as specified by the input project-name parameter.

oc project &> /dev/null
if [ $? -ne 0 ]; then
    echo "Creating new Openshift project : $PROJECT_NAME"
    oc new-project $PROJECT_NAME
else

should be:

oc project $PROJECT_NAME &> /dev/null
if [ $? -ne 0 ]; then
    echo "Creating new Openshift project : $PROJECT_NAME"
    oc new-project $PROJECT_NAME
else

Fix tested in master branch.