Comment 7 for bug 1549095

Revision history for this message
Steve Martinelli (stevemar) wrote :

I marked bug 1555366 as a duplicate and am copying the contents of the description here for completeness:

tl;dr: please check if OS_TOKEN is set when someone types "openstack token issue" and print a nice error message

Longer version:

Playing with "openstack token issue", I tried to do:
export OS_TOKEN=SOME-VALUE

to avoid passing the token on the command line, which worked very well.

Though, as I was playing, I attempted to get another token, with the OS_TOKEN env var set (which I didn't even remember I did earlier), and then the result is surprising:

$ openstack token issue
__init__() got an unexpected keyword argument 'token'

While I do understand that it may be normal that it fails, the error message is kind of surprising and not explaining anything. So, it'd be nice if OSC was carefully checking for the input and printing a nicer error message, as this typically will happen to someone else, who will, just like me, not understand what's going on.