Skip to content

Commit

Permalink
Added outarg filtering to playbook action step
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Aug 2, 2024
1 parent 7d1a7e9 commit be491f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/executors/playbook_action/playbook_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ func (playbookAction *PlaybookAction) Execute(metadata execution.Metadata,
return cacao.NewVariables(), err
}
playbookAction.reporter.ReportStepEnd(metadata.ExecutionId, step, playbook.PlaybookVariables, nil)
return details.Variables, nil
return details.Variables.Select(step.OutArgs), nil

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func TestExecutePlaybook(t *testing.T) {
ID: stepId,
Description: "",
PlaybookID: playbookId,
OutArgs: []string{"var1", "var2"},
}

database.On("GetDatabaseInstance").Return(playbookRepoMock)
Expand Down

0 comments on commit be491f2

Please sign in to comment.