| Summary: | katello shell 'changeset' command doesn't use environment from $HOME/.katello/client-options.conf | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | James Laska <jlaska> | ||||||
| Component: | katello-agent | Assignee: | Tomas Strachota <tstrachota> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Garik Khachikyan <gkhachik> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.0.0 | CC: | gkhachik, jturner, mkoci, tstrachota | ||||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
| Target Release: | Unused | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-08-22 18:27:16 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
James Laska
2012-02-14 20:08:24 UTC
Created attachment 562290 [details]
0001-790550-katello-shell-Honor-saved_options-environment.patch
Looks like the problem is because the changeset command stores the parser value as 'env' ... not 'environment'.
How would the user know that the proper --option name is 'env' not 'environment'?
Rather than document that the saved_option --option 'env' is what you use for any command that needs --environment, I'd propose the attached patch instead.
Thoughts?
For thoughts on the approach+patch in comment#1, adding katello shell expert tstracho to the cc-list. Created attachment 564445 [details]
0001-783405-remembered-options-are-now-recognized-by-opti.patch
Thanks for your patch, James!
I eventually implemented the fix different way. I find it better to keep option names and destinations separate. You can take advantage of having shorter destination names and also more options for one destination.
*** Bug 783405 has been marked as a duplicate of this bug. *** # VERIFIED Client remember options getting stored under: .katello/client-options.conf and the scenario with having changeset list with remembered org & env is going ok now. verified on versions of Katello: --- katello-0.1.243-1.git.0.a066880.el6.noarch katello-cli-0.1.57-1.git.0.4e2dd9a.el6.noarch pulp-0.0.266-1.el6.noarch candlepin-0.5.20-1.el6.noarch --- |