Skip to content

Commit

Permalink
Check matcher status for cluster template execution
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamRasal committed Sep 7, 2023
1 parent 643e903 commit daeded0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/pkg/templates/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (e *ClusterExecuter) Execute(input *contextargs.Context) (bool, error) {
event.InternalEvent["template-path"] = operator.templatePath
event.InternalEvent["template-info"] = operator.templateInfo

if result == nil && !matched {
if result == nil && !matched && e.options.Options.MatcherStatus {
if err := e.options.Output.WriteFailure(event); err != nil {
gologger.Warning().Msgf("Could not write failure event to output: %s\n", err)
}
Expand Down

0 comments on commit daeded0

Please sign in to comment.