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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user