cns-deploy retrieves wrong minor version if hostname includes "oc"
Issue
- cns-deploy fails with below error is hostname contain
oc:
Using OpenShift CLI.
/usr/bin/cns-deploy: line 414: [[: 5
ov: syntax error in expression (error token is "ov")
</snip>
due to line 414 in /usr/bin/cns-deploy:
oc_minor_version=$(${CLI} version | grep oc | awk '{ print $2 }' | cut -d '.' -f2)
Environment
- Openshift Container Platform
- cns-deploy-3.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.