Bug 1013399

Summary: [RFE]: Katello cmdline not to require '--org ORG' when only one organization is configured.
Product: [Retired] Katello Reporter: Magnus Glantz <sudo>
Component: InfrastructureAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.XCC: mmccune, omaciel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-10 16:02:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Magnus Glantz 2013-09-29 22:40:39 UTC
Description of problem:
When using the katello cmdline tool, you often have to provide --org 'NAME_OF_ORG', even when you only have one organization configured. This is a pain when working a lot in the cmdline.

Version-Release number of selected component (if applicable):
1.4.8-1.git.4.c940d43.el6

How reproducible:
N/A

Steps to Reproduce:
N/A

Actual results:
For example:
# katello -u admin -p PASSWORD activation_key list --org ACME_Corporation

Expected results:
For example:
# katello -u admin -p PASSWORD activation_key list

Additional info:
If normal use of RHN Satellite 5 reflects normal Katello usage - people will usually not configure more than one organization.

Comment 1 Og Maciel 2013-09-30 00:38:25 UTC
You could use the "remember" option so that you don't have to keep typing the org name.

ex: katello -u admin -p admin client remember --option org --value $ORG

Comment 2 Mike McCune 2013-10-10 16:02:41 UTC
Closing as NOTABUG since there is a solution mentioned in comment #1