Bug 620893 - pulp user module --name option is not being added even when specified
Summary: pulp user module --name option is not being added even when specified
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
: 623578 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-03 17:51 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-20 16:11:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-08-03 17:51:08 UTC
Description of problem:


there is a --name option in pulp user create but that is not getting passed. Name is specified as None even when you use --name option to specify a name.

[root@preethi pulp]# pulp -u admin -p admin user create --help
Usage: pulp -u <username> -p <password> user create [OPTIONS]


Options:
  -h, --help            show this help message and exit
  --newusername=NEWUSERNAME
                        new username to create
  --newpassword=NEWPASSWORD
                        password for authentication
  --name=NAME           name of user for display purposes
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.



[root@preethi pulp]# pulp -u admin -p admin user create --newusername=preethi1 --newpassword=redhat --name=test1 -u admin -p admin
 Successfully created User [ preethi1 ] with name [ None ]

[root@preethi pulp]# pulp -u admin -p admin user list -u admin -p admin+-------------------------------------------+
             Available Users                 
+-------------------------------------------+

Login :               	admin                        
Name  :                	None                     


Login :               	preethi                      
Name  :                	None                     


Login :               	preethi1                     
Name  :                	None                     

[root@preethi pulp]#

Comment 1 Pradeep Kilambi 2010-08-17 14:48:41 UTC
*** Bug 623578 has been marked as a duplicate of this bug. ***

Comment 2 Sayli Karmarkar 2010-09-29 15:57:17 UTC
Fixed.

$ sudo pulp-admin -u admin -p admin user create  --newusername="sayli" --newpassword="redhat"  --name="Sayli Karmarkar"
 Successfully created User [ sayli ] with name [ Sayli Karmarkar ]

$ sudo pulp-admin -u admin -p admin user list
+-------------------------------------------+
             Available Users                 
+-------------------------------------------+

Login :               	admin                        
Name  :               	None                     


Login :               	sayli                        
Name  :               	Sayli Karmarkar

Comment 3 Preethi Thomas 2010-10-01 18:27:23 UTC
[root@preethi ~]# pulp-admin user list
+-------------------------------------------+
             Available Users                 
+-------------------------------------------+

Login :               	admin                        
Name  :               	None                     


Login :               	test-user1                   
Name  :               	                         


Login :               	test-user2                   
Name  :               	                         


Login :               	preethi                      
Name  :               	preethi thomas           


Login :               	preethi1                     
Name  :               	preethi thomas

Comment 4 Preethi Thomas 2010-10-20 16:11:30 UTC
Closed after review.


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