Skip to content

Commit

Permalink
incus/s3: Fix mcli minio client executable name check
Browse files Browse the repository at this point in the history
The check only passed for the `mc` executable name.
This caused the client check to fail on my distribution
as the fallback from `mc` to `mcli` didn't pass this condition.

Signed-off-by: Milan Kubík <[email protected]>
  • Loading branch information
apophys committed Jul 15, 2024
1 parent a1bae10 commit cb2c5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/storage/s3/miniod/admin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *AdminClient) isMinIOClient() bool {
return false
}

if !strings.Contains(lines[0], "mc version") {
if !strings.Contains(lines[0], "mc version") && !strings.Contains(lines[0], "mcli version") {
return false
}

Expand Down

0 comments on commit cb2c5aa

Please sign in to comment.