From cb2c5aa11c5ff19c7d28cb29133fca97bdd604e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Kub=C3=ADk?= Date: Mon, 15 Jul 2024 16:07:43 +0200 Subject: [PATCH] incus/s3: Fix mcli minio client executable name check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- internal/server/storage/s3/miniod/admin_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/storage/s3/miniod/admin_client.go b/internal/server/storage/s3/miniod/admin_client.go index 4d1b64fa2c1..6ff75ac8ee4 100644 --- a/internal/server/storage/s3/miniod/admin_client.go +++ b/internal/server/storage/s3/miniod/admin_client.go @@ -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 }