Skip to content

Commit

Permalink
Refs #17748 - Send emails also when things go into paused
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed Sep 25, 2023
1 parent ec9062f commit 81649a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/actions/katello/capsule_content/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def resource_locks
:link
end

execution_plan_hooks.use :notify_on_failure, :on => :failure
execution_plan_hooks.use :notify_on_failure, :on => [:failure, :paused]

input_format do
param :name
Expand Down
2 changes: 1 addition & 1 deletion app/lib/actions/katello/content_view/promote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ContentView
class Promote < Actions::EntryAction
extend ApipieDSL::Class
include ::Actions::ObservableAction
execution_plan_hooks.use :notify_on_failure, :on => :failure
execution_plan_hooks.use :notify_on_failure, :on => [:failure, :paused]

def plan(version, environments, is_force = false, description = nil, incremental_update = false)
action_subject(version.content_view)
Expand Down
2 changes: 1 addition & 1 deletion app/lib/actions/katello/content_view/publish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Publish < Actions::EntryAction
include ::Actions::ObservableAction
attr_accessor :version
execution_plan_hooks.use :trigger_capsule_sync, :on => :success
execution_plan_hooks.use :notify_on_failure, :on => :failure
execution_plan_hooks.use :notify_on_failure, :on => [:failure, :paused]

# rubocop:disable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity
def plan(content_view, description = "", options = {importing: false, syncable: false}) # rubocop:disable Metrics/PerceivedComplexity
Expand Down
2 changes: 1 addition & 1 deletion app/lib/actions/katello/repository/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Sync < Actions::EntryAction
include ::Actions::ObservableAction
middleware.use Actions::Middleware::ExecuteIfContentsChanged

execution_plan_hooks.use :notify_on_failure, :on => :failure
execution_plan_hooks.use :notify_on_failure, :on => [:failure, :paused]

input_format do
param :id, Integer
Expand Down

0 comments on commit 81649a1

Please sign in to comment.