Project

General

Profile

Actions

Feature #19415

open

Allow searching of content hosts by subscription name

Added by Lukas Zapletal about 8 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Subscriptions
Target version:
-
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

The UUID is the only option, it is very complicated to get there.

pool = Katello::Pool.find(ID)
entitlements = Katello::Resources::Candlepin::Entitlement.get
uuids = entitlements.delete_if { |ent| ent["pool"]["id"] != pool.cp_id }.map { |ent| ent["consumer"]["uuid"] }
Actions

Also available in: Atom PDF