diff --git a/cmd/testworkflow-toolkit/commands/artifacts.go b/cmd/testworkflow-toolkit/commands/artifacts.go index d047aa01598..615cd6daf8f 100644 --- a/cmd/testworkflow-toolkit/commands/artifacts.go +++ b/cmd/testworkflow-toolkit/commands/artifacts.go @@ -148,8 +148,8 @@ func NewArtifactsCmd() *cobra.Command { } // Support cd evaents - if env.Config().System.CDEventTarget != "" { - handlerOpts = append(handlerOpts, artifacts.WithCDEventsTarget(env.Config().System.CDEventTarget)) + if env.Config().System.CDEventsTarget != "" { + handlerOpts = append(handlerOpts, artifacts.WithCDEventsTarget(env.Config().System.CDEventsTarget)) handlerOpts = append(handlerOpts, artifacts.WithCDEventsArtifactParameters(cdevents.CDEventsArtifactParameters{ Id: env.Config().Execution.Id, Name: env.Config().Execution.Name, diff --git a/cmd/testworkflow-toolkit/env/config.go b/cmd/testworkflow-toolkit/env/config.go index 31851130408..c7fd6207610 100644 --- a/cmd/testworkflow-toolkit/env/config.go +++ b/cmd/testworkflow-toolkit/env/config.go @@ -55,7 +55,7 @@ type envSystemConfig struct { DashboardUrl string `envconfig:"TK_DASH"` ApiUrl string `envconfig:"TK_API"` ClusterID string `envconfig:"TK_CLU"` - CDEventTarget string `envconfig:"TK_CDE"` + CDEventsTarget string `envconfig:"TK_CDE"` } type envImagesConfig struct {