Skip to content

Commit

Permalink
chore: identify pluginName with quotes (argoproj#12040) (argoproj#12046)
Browse files Browse the repository at this point in the history
* fix: identify pluginName with quotes

Signed-off-by: Andriy Drozd <48000208+drozd-A@users.noreply.github.com>

* Update util/app/discovery/discovery.go

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Andriy Drozd <48000208+drozd-A@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
2 people authored and xiaowu.zhu committed Aug 9, 2023
1 parent c84edc6 commit 830e390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/app/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func DetectConfigManagementPlugin(ctx context.Context, repoPath, pluginName stri
// check if the given plugin supports the repo
conn, cmpClient, connFound = cmpSupports(ctx, pluginSockFilePath, repoPath, fmt.Sprintf("%v.sock", pluginName), env, tarExcludedGlobs, true)
if !connFound {
return nil, nil, fmt.Errorf("couldn't find cmp-server plugin with name %v supporting the given repository", pluginName)
return nil, nil, fmt.Errorf("couldn't find cmp-server plugin with name %q supporting the given repository", pluginName)
}
} else {
fileList, err := os.ReadDir(pluginSockFilePath)
Expand Down

0 comments on commit 830e390

Please sign in to comment.