Skip to content

Commit

Permalink
fix: remove false positive for no-discovery cmp; log string, not bytes (
Browse files Browse the repository at this point in the history
argoproj#13251)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev authored and xiaowu.zhu committed Aug 9, 2023
1 parent 21e1f51 commit 97a9a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmpserver/plugin/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Discover struct {
}

func (d Discover) IsDefined() bool {
return d.FileName != "" || d.Find.Glob == "" || len(d.Find.Command.Command) > 0
return d.FileName != "" || d.Find.Glob != "" || len(d.Find.Command.Command) > 0
}

// Command holds binary path and arguments list
Expand Down
2 changes: 1 addition & 1 deletion cmpserver/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func runCommand(ctx context.Context, command Command, path string, env []string)
}
if len(output) == 0 {
log.WithFields(log.Fields{
"stderr": stderr,
"stderr": stderr.String(),
"command": command,
}).Warn("Plugin command returned zero output")
}
Expand Down

0 comments on commit 97a9a57

Please sign in to comment.