Test for project existence in deploy.sh does not use parameterized project name
Closed this issue · 1 comments
rodgeve commented
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
rodgeve commented
Fix tested in master branch.