Bug 674110

Summary: Repo status Type Error when --id is Null
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 20   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 674111 (view as bug list) Environment:
Last Closed: 2011-08-16 12:11:20 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: 647488    

Description Preethi Thomas 2011-01-31 17:01:44 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.132-1.fc14.noarch

Description of problem:


[root@preethi ~]# pulp-admin repo status --id=
+------------------------------------------+
                 Status for 
+------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 147, in <module>
    admin.main()
  File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 229, in main
    self.run()
  File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 265, in run
    print _('Repository: %s') % repo['id']
TypeError: list indices must be integers, not str

Comment 1 Sayli Karmarkar 2011-02-01 19:10:28 UTC
Fixed along with the fix for bug# 672881. 

$ pulp-admin repo status --id=
Usage: pulp-admin <options> repo status <options>

pulp-admin: error: --id option requires an argument

Comment 2 Jay Dobies 2011-02-02 20:07:19 UTC
Fixed in 0.134.

Comment 3 Preethi Thomas 2011-02-02 21:54:20 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch
[root@preethi ~]# pulp-admin repo status --id=
Usage: pulp-admin <options> repo status <options>

pulp-admin: error: --id option requires an argument

Comment 4 Preethi Thomas 2011-08-16 12:11:20 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:51 UTC
Closing with Community Release 15

pulp-0.0.223-4.