fix step attributes

pull/1/head
Brad Rydzewski 5 years ago
parent f16a481b8b
commit 80bb9688cb

@ -228,8 +228,8 @@ func findStep(state *pipeline.State, name string) *drone.Step {
// pipeline step.
func secretSlice(step Step) []Secret {
var secrets []Secret
for i := 0; i < step.SecretLen(); i++ {
secrets = append(secrets, step.SecretAt(i))
for i := 0; i < step.GetSecretLen(); i++ {
secrets = append(secrets, step.GetSecretAt(i))
}
return secrets
}

@ -57,18 +57,10 @@ type (
// GetSecretAt returns the secret at the specified
// index.
SecretAt(int) Secret
GetSecretAt(int) Secret
// GetSecretLen returns the number of secrets.
SecretLen() int
// IsRunOnFailure returns true if the step should
// executed if the pipeline state is failing.
IsRunOnFailure() bool
// IsRunOnSuccess returns true if the step should
// executed if the pipeline state is passing.
IsRunOnSuccess() bool
GetSecretLen() int
// IsDetached returns true if the step is detached
// and executed in the background.

Loading…
Cancel
Save