From 2a5ad073c6d7f10d46c46679d6598f6debe57a14 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 20 Aug 2018 14:10:57 +0200 Subject: [PATCH] also set subscriptions when creating a new key with defaults (#170) --- modules/katello_activation_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/katello_activation_key.py b/modules/katello_activation_key.py index 8778000146..12806e8559 100755 --- a/modules/katello_activation_key.py +++ b/modules/katello_activation_key.py @@ -193,7 +193,7 @@ def main(): # only update subscriptions of newly created or updated AKs # copied keys inherit the subscriptions of the origin, so one would not have to specify them again # deleted keys don't need subscriptions anymore either - if state == 'present': + if state == 'present' or (state == 'present_with_defaults' and changed): if 'subscriptions' not in entity_dict: subscriptions = [] else: