Skip to content

Commit

Permalink
If the template file is not found, consider it the name available int…
Browse files Browse the repository at this point in the history
…ernally
  • Loading branch information
hhorak committed Oct 30, 2018
1 parent 88fda77 commit 94597ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test-lib-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,10 @@ function ct_os_test_template_app_func() {
done
fi
local local_template=$(ct_obtain_input "${template}")
# get the template file from remote or local location; if not found, it is
# considered an internal template name, like 'mysql', so use the name
# explicitly
local local_template=$(ct_obtain_input "${template}" || echo "${template}")
local namespace=${CT_NAMESPACE:-$(oc project -q)}
oc new-app ${local_template} \
--name "${name_in_template}" \
Expand Down

0 comments on commit 94597ca

Please sign in to comment.