| Summary: | pulp-admin errata list does not check for non-existing consumer | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Sayli Karmarkar <skarmark> |
| Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | CC: | cperry |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 29 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:13:45 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fixed. $ sudo pulp-admin errata list --consumerid consumer error: operation failed: Consumer [consumer] does not exist build 0.242-2 [root@preethi ~]# rpm -q pulp pulp-0.0.244-5.fc15.noarch [root@preethi ~]# pulp-admin -u admin -p admin errata list --consumerid consumer error: error: operation failed: Consumer [consumer] does not exist [root@preethi ~]# Pulp v1.0 is released Closed Current Release. |
Description of problem: $ sudo pulp-admin errata list --consumerid consumer error: operation failed: TypeError: 'NoneType' object is not subscriptable Log shows: 2011-10-23 23:01:22,978 4675:139936158160640: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last): File "/home/skarmark/git/pulp1/pulp/src/pulp/server/webservices/controllers/decorators.py", line 48, in report_error return method(self, *args, **kwargs) File "/home/skarmark/git/pulp1/pulp/src/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator value = method(self, *args, **kwargs) File "/home/skarmark/git/pulp1/pulp/src/pulp/server/webservices/controllers/repositories.py", line 618, in GET return field(id) File "/home/skarmark/git/pulp1/pulp/src/pulp/server/webservices/controllers/repositories.py", line 555, in errata errata = api.errata(id) File "/home/skarmark/git/pulp1/pulp/src/pulp/server/api/repo.py", line 1001, in errata repo = self._get_existing_repo(id) File "/home/skarmark/git/pulp1/pulp/src/pulp/server/api/repo.py", line 116, in _get_existing_repo raise PulpException("No Repo with id: %s found" % id) PulpException: No Repo with id: foo found