Skip to content

Commit 63eaed1

Browse files
authored
Merge pull request #1830 from afumagalli98/1824
Removed cluster veritas hijacked
2 parents 21430e1 + ff0bc8e commit 63eaed1

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

api-service/service/databases.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -884,17 +884,6 @@ licenses:
884884
return nil, err
885885
}
886886

887-
usedlicense := v
888-
889-
if usedlicense.LicenseTypeID == "L47837" && usedlicense.ClusterType == "VeritasCluster" {
890-
used := float64(len(strings.Split(usedlicense.ClusterName, ",")))
891-
usedlicense.ClusterLicenses = used
892-
}
893-
894-
if clusterLicenses == 0 {
895-
clusterLicenses = usedlicense.ClusterLicenses
896-
}
897-
898887
licensesPerHost = append(licensesPerHost,
899888
dto.DatabaseUsedLicensePerHost{
900889
Hostname: v.Hostname,

model/hostdata_be.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ type HostDataBE struct {
4747
Clusters []ClusterInfo `json:"clusters" bson:"clusters"`
4848
Cloud Cloud `json:"cloud" bson:"cloud"`
4949
Errors []AgentError `json:"errors" bson:"errors"`
50-
CpuConsumptions []CpuConsumption `json:"cpuConsumptions"`
50+
CpuConsumptions []CpuConsumption `json:"cpuConsumptions"`
5151
DiskConsumptions []DiskConsumption `json:"diskConsumptions"`
5252
}
5353

5454
func (v *HostDataBE) GetClusterCores(hostdatasPerHostname map[string]*HostDataBE) (int, error) {
5555
cms := v.ClusterMembershipStatus
5656
if !cms.VeritasClusterServer ||
57-
(cms.VeritasClusterServer && len(cms.VeritasClusterHostnames) <= 2) {
57+
(cms.VeritasClusterServer && len(cms.VeritasClusterHostnames) < 2) {
5858
return 0, utils.ErrHostNotInCluster
5959
}
6060

0 commit comments

Comments
 (0)