app/lib/actions/katello/capsule_content/sync.rb in katello-4.12.0.rc1 vs app/lib/actions/katello/capsule_content/sync.rb in katello-4.12.0.rc2

- old
+ new

@@ -50,10 +50,10 @@ def notify_on_failure(_plan) notification = MailNotification[:proxy_sync_failure] proxy = SmartProxy.find(input.fetch(:smart_proxy, {})[:id]) subjects = subjects(input[:options]).merge(smart_proxy: proxy) - notification.users.where(disabled: [nil, false], mail_enabled: true).each do |user| + notification.users.with_enabled_email.each do |user| notification.deliver(subjects.merge(user: user, task: task)) end end def subjects(options = {})