Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 845267 - RFE: As a user, I would like to be able to set my preferred locale via the CLI
Summary: RFE: As a user, I would like to be able to set my preferred locale via the CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-02 14:00 UTC by Og Maciel
Modified: 2017-02-23 21:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-27 17:11:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9112 0 None None None 2016-04-22 16:00:01 UTC

Description Og Maciel 2012-08-02 14:00:31 UTC
Description of problem:

As the admin user for a Katello server, I would like to be able to create user accounts and set their preferred locale from the CLI.

As a regular user I would like to be able to modify/set my preferred locale from the CLI.

Right now this is only exposed via the web ui and I strongly feel that we should make this option available. Imagine a user who only understands (i.e. read) one particular language that does not match the default locale for the Katello interface. How one one then change his own locale so he can use the web ui?

As this preference is something we actually store in the database, we should support setting the locale from the CLI.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Mike McCune 2012-08-08 15:08:30 UTC
There is a pull request inbound for this

Comment 2 Og Maciel 2012-08-23 13:59:45 UTC
Pull request was merged already: https://github.com/Katello/katello/pull/436

Comment 3 Mike McCune 2013-09-19 18:19:12 UTC
These bugs have been resolved in upstream projects for a period of months so
I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to
re-open.

Comment 4 Mike McCune 2013-09-20 02:29:49 UTC
This bug was mistakenly closed during a triage process.  Moving back to MODIFIED or ON_QA depending

Comment 5 Bryan Kearney 2014-06-17 18:59:26 UTC
This commit was made against the old katello cli, but the equivilant does not exist in hammer. 

[bkearney@bkearney hammer-cli]$ hammer user create --help
Usage:
    hammer user create [OPTIONS]

Options:
    --admin ADMIN                 Is an admin account?
    --auth-source-id AUTH_SOURCE_ID  
    --default-location-id DEFAULT_LOCATION_ID  
    --default-organization-id DEFAULT_ORGANIZATION_ID  
    --firstname FIRSTNAME          
    --lastname LASTNAME            
    --login LOGIN                  
    --mail MAIL                    
    --password PASSWORD            
    -h, --help                    print help

Comment 7 Tomas Strachota 2015-01-26 14:06:30 UTC
Created redmine issue http://projects.theforeman.org/issues/9112 from this bug

Comment 8 Tomas Strachota 2015-02-25 11:18:30 UTC
This issue got fixed by a change in Foreman's api docs. 
Commited into upstream repo:

commit 807f8b66a06de944a9c6da4d8cd15e5be1f678ac
Author: Tomas Strachota <tstrachota>
Date:   Fri Jan 23 14:19:46 2015 +0000

    Fixes #9113 - api docs for users miss locale and timestamp params
    
    Locale was missing also in the server responses.

Comment 9 jcallaha 2015-03-27 18:57:32 UTC
Verified by QE on version Satellite-6.1.0-RHEL-7-20150324.0

Comment 10 Bryan Kearney 2015-08-27 17:11:10 UTC
This was delivered with Satellite 6.1 on 15 August.


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