Bug 818686 - cli --user and --password after command name ends in confusing error
Summary: cli --user and --password after command name ends in confusing error
Keywords:
Status: CLOSED DUPLICATE of bug 817845
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-03 18:19 UTC by Justin Sherrill
Modified: 2014-01-27 14:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 08:47:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2012-05-03 18:19:25 UTC
Description of problem:

Using the cli, but specifying the user/pass in the wrong place can lead to a confusing error:

$ katello system list --user=admin --password=admin
error: Missing credentials and unable to authenticate using Kerberos (more in the log file)


When i get this I am confused because i have provided credentials yet it is complaining i have not.  we need a better error message.

Correct syntax with better error about a different arg that is missing:

$katello --user=admin --password=admin system list 
Usage: katello [options]

katello: error: Option --org is required; please see --help



I usually don't think about arg ordering as mattering, but it does in our CLI and we need better communication around that.

Comment 1 Lukas Zapletal 2012-05-15 08:47:32 UTC

*** This bug has been marked as a duplicate of bug 817845 ***


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