Skip to content

Commit

Permalink
Allow policy with no conditions (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
crshanks authored Jan 17, 2023
1 parent 66ab69f commit d90a878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migratepolicies.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def update_notification_channels(tgt_api_key, tgt_region, source_policy, target_
if not loaded_src_channels['channels_by_policy_id']:
logger.info('No notification channel subscriptions')
return
src_channel_ids = []
if src_policy_id in loaded_src_channels['channels_by_policy_id']:
src_channel_ids = loaded_src_channels['channels_by_policy_id'][src_policy_id]
src_channels = []
Expand Down

0 comments on commit d90a878

Please sign in to comment.