diff --git a/cmd/admin-subnet-health.go b/cmd/admin-subnet-health.go index 528ed25b..a275df7f 100644 --- a/cmd/admin-subnet-health.go +++ b/cmd/admin-subnet-health.go @@ -98,7 +98,7 @@ EXAMPLES: 3. Periodically upload health diagnostics for the MinIO cluster with alias 'play' (https://play.min.io by default) to SUBNET every 2 days {{.Prompt}} {{.HelpName}} play --schedule 2 4. Generate health diagnostics report for the MinIO cluster with alias 'play' (https://play.min.io by default) to and output them to the current working directory - {{.Prompt}} {{.HelpName}} play --offline + {{.Prompt}} {{.HelpName}} play --airgap `, } @@ -219,7 +219,7 @@ func fetchSubnetUploadFlags(ctx *cli.Context) (string, int, string, bool) { // If set, the health report file will not be uploaded // to subnet and will only be saved locally. - offline := ctx.Bool("offline") + offline := ctx.Bool("airgap") || ctx.Bool("offline") return license, schedule, name, offline } @@ -233,7 +233,7 @@ func validateFlags(uploadToSubnet bool, uploadPeriodically bool, name string) er } if globalDevMode { - return errors.New("--dev is not applicable in offline mode") + return errors.New("--dev is not applicable in airgap mode") } if uploadPeriodically { diff --git a/cmd/admin-subnet-register.go b/cmd/admin-subnet-register.go index 7d36f6b4..8f52b15b 100644 --- a/cmd/admin-subnet-register.go +++ b/cmd/admin-subnet-register.go @@ -105,7 +105,7 @@ type SubnetMFAReq struct { func mainAdminRegister(ctx *cli.Context) error { checkAdminRegisterSyntax(ctx) - offlineMode := ctx.Bool(("offline")) + offlineMode := ctx.Bool("airgap") || ctx.Bool("offline") if !offlineMode && !subnetReachable() { console.Fatalln(subnetNotReachableMsg()) } diff --git a/cmd/subnet-utils.go b/cmd/subnet-utils.go index d0b5f1e9..ca52094e 100644 --- a/cmd/subnet-utils.go +++ b/cmd/subnet-utils.go @@ -53,7 +53,7 @@ var subnetCommonFlags = []cli.Flag{ Usage: "Specify the HTTP(S) proxy URL to use for connecting to SUBNET", }, cli.BoolFlag{ - Name: "offline", + Name: "airgap", Usage: "Use in environments without network access to SUBNET (e.g. airgapped, firewalled, etc.)", }, cli.BoolFlag{ @@ -61,6 +61,12 @@ var subnetCommonFlags = []cli.Flag{ Usage: "Development mode - talks to local SUBNET", Hidden: true, }, + cli.BoolFlag{ + // Deprecated Oct 2021. Same as airgap, retaining as hidden for backward compatibility + Name: "offline", + Usage: "Use in environments without network access to SUBNET (e.g. airgapped, firewalled, etc.)", + Hidden: true, + }, } func subnetBaseURL() string {