Bug 1017674 - [rhc-client] delete non existing token returns 0 - success
Summary: [rhc-client] delete non existing token returns 0 - success
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-10 10:20 UTC by mzimen
Modified: 2015-05-15 02:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-10 13:53:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mzimen 2013-10-10 10:20:48 UTC
Description of problem:

When deleting non-existing token with this command:

  $rhc authorization delete --auth-token 11111111


Version-Release number of selected component (if applicable):
  rhc 1.15.6

How reproducible:
  always


Steps to Reproduce:
1. rhc authorization delete --auth-token 11111111
2. echo $?
3.

Actual results:


Expected results:


Additional info:

Comment 1 Clayton Coleman 2013-10-10 13:53:39 UTC
Intentional - we decided that the outcome (the token is gone) is what we are conveying.  Deleting a non-existent token is the same as deleting an existing token.  Only a failure to remove a token returns nonzero


Note You need to log in before you can comment on or make changes to this bug.