Bug 761056 - RFE: pulp-consumer should be able to report currently bound repos
Summary: RFE: pulp-consumer should be able to report currently bound repos
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 16:09 UTC by Bowe Strickland
Modified: 2014-11-11 22:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-11 22:17:04 UTC


Attachments (Terms of Use)

Description Bowe Strickland 2011-12-07 16:09:10 UTC
it's hard from the consumer to determine currently bound repos, making, for example, a puppet "unless => ..." clause difficult.  Info can be scraped from "yum repolist", but this not exacting.

I propose:

"pulp-consumer repo list --bound" which reports all bound repos, and

"pulp-consumer repo list --bound --repoid=the-repoid-in-question", 
which return 0 on success and non-zero on failure.


--b

Comment 1 Chris Duryee 2014-11-11 22:17:04 UTC
I think something like "pulp-consumer rpm repos --fields=name" will do the trick.

For example (on pulp 2.4.3):

$ pulp-consumer  rpm repos --fields=name       
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:           zoo


Marking BZ as closed/worksforme. If the above command doesn't work for you, feel free to re-open this bug or create a new one.


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