File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,20 @@ func (as *APIService) GetClusterVeritasLicenses(filter dto.GlobalFilter) ([]dto.
4545
4646 for _ , realLicense := range realclusterLicenses {
4747 if ! containsClusterVeritasLicense (v , realLicense ) {
48- clusterVeritasLicenses = append ( clusterVeritasLicenses , dto.ClusterVeritasLicense {
48+ add := dto.ClusterVeritasLicense {
4949 ID : k ,
5050 LicenseTypeID : realLicense .LicenseTypeID ,
5151 Description : realLicense .Description ,
5252 Metric : realLicense .Metric ,
5353 Count : clusterVeritasLicensesMap [k ][0 ].Count ,
5454 Hostnames : existingHostsDR ,
55- })
55+ }
56+
57+ if realLicense .LicenseTypeID == "L47837" {
58+ add .Count = float64 (len (existingHostsDR ))
59+ }
60+
61+ clusterVeritasLicenses = append (clusterVeritasLicenses , add )
5662 }
5763 }
5864 }
You can’t perform that action at this time.
0 commit comments