Bug 733266

Summary: [cli] createUser - disabled=True does not work (requires: true)
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: APIAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.1CC: inecas, mkoci
Target Milestone: Unspecified   
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 17:53:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Garik Khachikyan 2011-08-25 10:04:46 UTC
Description of problem:
in the katello-cli "user create" method the parameter disabled takes the value "true" for preparing disabled user. The "True" case just does not work.
but intuitively (as the tool is in Python itself) it was expected to accept True (as well).
I would suggest to make disabled.lower() :)

Version-Release number of selected component (if applicable):
recent katello rpm build: katello-0.1.70-1.git.7.ca8d03c.fc15.noarch

How reproducible:
always

Steps to Reproduce:
1. katello shell 
2. user create --name test --password <pass> --disabled True
3. user list
note, that your user is created with Disabled "False" there.
  
Actual results:
"--disabled True" does not work,

Expected results:
Would be better to have both: true and True working as --disabled values.

Additional info:

Comment 1 Ivan Necas 2011-09-20 08:02:17 UTC
Fixed in 2e48d51dd0e7291dbba8cc04d1b425dc6a653747

Also added checking for the correct value so that this option won't accept anything else except "true" or "false" ignoring case.

Comment 2 Garik Khachikyan 2011-09-23 11:41:12 UTC
# VERIFIED

fixed - now the true|false with its ignorecase(s) are accepted,anything else gives:katello: error: option --disabled: invalid boolean value: <value>

Checked against: katello-cli-0.1.10-1.git.278.85760dc.el6.noarch

Comment 5 Mike McCune 2013-08-16 18:18:55 UTC
getting rid of 6.0.0 version since that doesn't exist