File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
5454func (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
You can’t perform that action at this time.
0 commit comments