[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: oc whoami bug?





On Wed, Jun 21, 2017 at 9:31 AM, Clayton Coleman <ccoleman redhat com> wrote:
The reason today it does not do that so you can use it in scripting effectively.  It's expected you're using that immediately in another command which would display that error.

why would "oc whoami -t" returning an error in this case prevent using it in scripting effectively?  it would just mean the script would fail one command earlier (before the bad token was used).  Seems like that would be the more useful behavior in terms of understanding what failed in the script, too.


 

On Jun 21, 2017, at 7:49 AM, Philippe Lafoucrière <philippe lafoucriere tech-angels.com> wrote:

Just to be clear, my point is: if `oc whoami` returns "error: You must be logged in to the server (the server has asked for the client to provide credentials)", `oc whoami -t` should return the same if the session has timed out ;)
_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]