Bug 790170 - No package groups in a repository is incorrectly flagged as an error
Summary: No package groups in a repository is incorrectly flagged as an error
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 20:10 UTC by Jay Dobies
Modified: 2013-09-27 14:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-27 14:05:44 UTC


Attachments (Terms of Use)

Description Jay Dobies 2012-02-13 20:10:55 UTC
This is similar to 790137.

When listing package groups in a repository, the lack of any is not an error condition, it's simply the state of the repository. This is reflected in the client in both the command output [1] and the exit code [2].

The bigger concern here, as with 790137, is if the REST API incorrectly indicates an error instead of returning an empty list. This needs to be checked in the fixing of this bug as well.

[1]

[jdob@pulp1 ~]$ pulp-admin packagegroup list --repoid pulp-f16
error:  No package groups found in repo [pulp-f16]


[2]

[jdob@pulp1 ~]$ echo $?
65

Comment 1 Michael Hrivnak 2013-09-27 14:05:44 UTC
this is no longer an issue


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