Skip to content

Commit

Permalink
also set subscriptions when creating a new key with defaults (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Aug 20, 2018
1 parent ab4869b commit 2a5ad07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/katello_activation_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a5ad07

Please sign in to comment.