Skip to content

Commit a87f5a3

Browse files
Fixed login and context capabilities
1 parent d8438b6 commit a87f5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oc-cluster

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ function up {
499499
# TODO: Change skip-tls with the certs --certificate-authority=
500500
oc adm config set-cluster ${_profile} --server=https://$OC_CLUSTER_PUBLIC_HOSTNAME:8443 --insecure-skip-tls-verify=true &> /dev/null
501501
# TODO: Change token for secure certs: --client-certificate=path/to/my/client/cert --client-key=path/to/my/client/key
502-
oc adm config set-credentials ${OS_DEFAULT_USER}@${_profile} --token=$(oc whoami -t) &> /dev/null
502+
oc adm config set-credentials ${OS_DEFAULT_USER}/${_profile} --token=$(oc whoami -t) &> /dev/null
503503
oc adm config set-context ${_profile} --cluster=${_profile} --user=${OS_DEFAULT_USER}/${_profile} --namespace=${OS_DEFAULT_PROJECT} &> /dev/null
504504
oc adm config use-context ${_profile} # &> /dev/null
505505

0 commit comments

Comments
 (0)