@@ -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 (), "\n WARNING: 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 (), "\n WARNING: 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 }
@@ -222,12 +222,12 @@ func runLicenseCmd(cmd *cobra.Command, cfg license_Config) error {
222222 "\033 [0m" , // Reset font color
223223 header ,
224224 strings .Repeat ("=" , len (header )),
225- license .Data .Organization ,
226- license .Data .Locality ,
227- license .Data .Country ,
228- license .Data .ParentData .Organization ,
229- license .Data .ParentData .Locality ,
230- license .Data .ParentData .Country ,
225+ license .Data .GetOrganization () ,
226+ license .Data .GetLocality () ,
227+ license .Data .GetCountry () ,
228+ license .Data .ParentData .GetOrganization () ,
229+ license .Data .ParentData .GetLocality () ,
230+ license .Data .ParentData .GetCountry () ,
231231 validFrom .Format ("2006-01-02 MST" ),
232232 validUntil .Format ("2006-01-02 MST" ),
233233 daysLeftMessage ,
0 commit comments