Updated subscription date
Build Docker image on push / docker (push) Successful in 22s
Build and push Docker image on tag / docker (push) Successful in 22s

This commit is contained in:
2026-08-17 21:50:23 +02:00
parent e5a5e6416b
commit f8f9e0c852
4 changed files with 40 additions and 7 deletions
+10 -5
View File
@@ -430,13 +430,18 @@ func (r *PveSdnResource) GetStatusNumeric() float64 {
return 0
}
// GetActiveNumeric returns the numeric state of a subscription.
// Returns 1 if the subscription status is "active", otherwise returns 0.
func (r *PveSubscription) GetActiveNumeric() float64 {
if r.Status == "active" {
// GetStatusNumeric returns the numeric state of a subscription.
// A missing subscription is 0, an active subscription is 1, and an expired
// or otherwise unusable subscription is 2.
func (r *PveSubscription) GetStatusNumeric() float64 {
switch r.Status {
case "notfound":
return 0
case "active":
return 1
default:
return 2
}
return 0
}
// GetSmartPassedState returns the numeric health state of a disk.