-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37284 - Do not overwrite results
- Loading branch information
1 parent
c2964a6
commit cba48c4
Showing
3 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
lib/smart_proxy_dynflow/action/middleware/assemble_results.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module Proxy::Dynflow::Action::Middleware | ||
class AssembleResults < ::Dynflow::Middleware | ||
def present | ||
unless %i[error success skipped].include?(action.run_step&.state) | ||
action.output[:result] = action.output_result | ||
end | ||
pass | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters