1
0
mirror of https://github.com/minio/mc.git synced 2025-12-08 22:28:28 +03:00

Expose health diagnostics related functions (#4885)

So that dependent projects (e.g. console) can make use of them instead
of duplicating the logic.
This commit is contained in:
Shireesh Anjal
2024-03-30 20:58:09 +05:30
committed by GitHub
parent 89d742a76d
commit 206d017878
11 changed files with 257 additions and 201 deletions

View File

@@ -113,9 +113,9 @@ func validateClusterRegistered(alias string, cmdTalksToSubnet bool) string {
// Non-registered execution allowed only in following scenarios
// command doesn't talk to subnet: dev mode (`--dev` passed)
// command talks to subnet: dev+airgapped mode (both `--dev` and `--airgap` passed)
requireRegistration := !globalDevMode
requireRegistration := !GlobalDevMode
if cmdTalksToSubnet {
requireRegistration = !(globalDevMode && globalAirgapped)
requireRegistration = !(GlobalDevMode && globalAirgapped)
}
apiKey, e := getSubnetAPIKey(alias)