Skip to content

Commit 7ce1ec7

Browse files
committed
chore(license): rename temporary -> trial and customer -> enterprise
1 parent a08828b commit 7ce1ec7

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ctl/internal/cmd/license/license.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ func runLicenseCmd(cmd *cobra.Command, cfg license_Config) error {
175175
header = fmt.Sprintf("NOT FOR RESALE License Certificate %s", license.Data.CommonName)
176176
} else if slices.Contains(scopes, "beeond") {
177177
header = fmt.Sprintf("BeeOND License Certificate %s", license.Data.CommonName)
178-
} else if license.Data.Type == pl.CertType_CERT_TYPE_CUSTOMER {
178+
} else if license.Data.Type == pl.CertType_CERT_TYPE_ENTERPRISE {
179179
header = fmt.Sprintf("BeeGFS Enterprise License Certificate %s", license.Data.CommonName)
180-
} else if license.Data.Type == pl.CertType_CERT_TYPE_TEMPORARY {
181-
header = fmt.Sprintf("BeeGFS Temporary License Certificate %s", license.Data.CommonName)
182-
defer genLicHelpFunc(cmd.Context(), "\nWARNING: This system has a temporary license installed.")
180+
} else if license.Data.Type == pl.CertType_CERT_TYPE_TRIAL {
181+
header = fmt.Sprintf("BeeGFS Trial License Certificate %s", license.Data.CommonName)
182+
defer genLicHelpFunc(cmd.Context(), "\nWARNING: This system has a trial license installed.")
183183
} else if license.Data.Type == pl.CertType_CERT_TYPE_COMMUNITY {
184184
header = fmt.Sprintf("BeeGFS Community License Certificate %s", license.Data.CommonName)
185185
} else {
@@ -188,10 +188,10 @@ func runLicenseCmd(cmd *cobra.Command, cfg license_Config) error {
188188

189189
var color string
190190
switch license.Data.Type {
191-
case pl.CertType_CERT_TYPE_CUSTOMER:
192-
color = "\033[32m" // Green if license is valid and customer license
193-
case pl.CertType_CERT_TYPE_TEMPORARY:
194-
color = "\033[33m" // Yellow if license is valid and temporary license
191+
case pl.CertType_CERT_TYPE_ENTERPRISE:
192+
color = "\033[32m" // Green if license is valid and enterprise license
193+
case pl.CertType_CERT_TYPE_TRIAL:
194+
color = "\033[33m" // Yellow if license is valid and trial license
195195
default:
196196
color = "\033[34m" // Blue for all other license types including community licenses
197197
}

ctl/pkg/ctl/license/license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Check(ctx context.Context, allTargets []target.GetTargets_Result) (result C
6767
remaining, message := GetTimeToExpiration(license)
6868
// Warn by default 90 days before expiry.
6969
renewalWindow := 90 * 24 * time.Hour
70-
if license.Data.Type == pl.CertType_CERT_TYPE_TEMPORARY {
70+
if license.Data.Type == pl.CertType_CERT_TYPE_TRIAL {
7171
// For temp licenses only warn 14 days before.
7272
renewalWindow = 14 * 24 * time.Hour
7373
}

0 commit comments

Comments
 (0)