Skip to content

Commit

Permalink
fix(api): update pipeline via edit as code take care of enabled (close
Browse files Browse the repository at this point in the history
…#3366) (#3418)

Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
  • Loading branch information
bnjjj authored and yesnault committed Oct 9, 2018
1 parent d62188a commit 4d646cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion engine/api/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func InsertAction(tx gorp.SqlExecutor, a *sdk.Action, public bool) error {
a.Actions[i].ID = ch.ID
a.Actions[i].AlwaysExecuted = ch.AlwaysExecuted || a.Actions[i].AlwaysExecuted
a.Actions[i].Optional = ch.Optional || a.Actions[i].Optional
a.Actions[i].Enabled = ch.Enabled
log.Debug("InsertAction> Get existing child Action %s with enabled:%t", a.Actions[i].Name, a.Actions[i].Enabled)
} else {
log.Debug("InsertAction> Child Action %s is knowned with enabled:%t", a.Actions[i].Name, a.Actions[i].Enabled)
Expand Down

0 comments on commit 4d646cf

Please sign in to comment.