Skip to content

Commit a8ab2db

Browse files
authored
Merge pull request #2101 from afumagalli98/feat/2099
feat: updated veritas cluster licenses count for oracle gateway
2 parents 5bf5eb2 + 83861ac commit a8ab2db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

api-service/service/host_cluster_veritas.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)