From 7063db64c22d94276e8423df3459153e8cb46806 Mon Sep 17 00:00:00 2001 From: Pavel Malyshev Date: Tue, 30 Aug 2016 14:43:07 +0300 Subject: [PATCH] redhat_subcription module accepts id in the pool argument [#3898] --- lib/ansible/modules/packaging/os/redhat_subscription.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py index b6e468bd70..2a709a2fc8 100644 --- a/lib/ansible/modules/packaging/os/redhat_subscription.py +++ b/lib/ansible/modules/packaging/os/redhat_subscription.py @@ -472,6 +472,8 @@ class RhsmPools(object): for product in self.products: if r.search(product._name): yield product + if r.search(product.PoolID): + yield product def main():