Skip to content

Commit c6c7b01

Browse files
authored
Merge pull request #625 from afumagalli98/1824
Removed cluster veritas hijacked
2 parents 9fcdc0c + c253ea8 commit c6c7b01

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

builder/common_builder/common_builder.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package common
1717

1818
import (
1919
"runtime"
20-
"sort"
2120
"strings"
2221

2322
"github.com/ercole-io/ercole-agent/v2/config"
@@ -118,31 +117,6 @@ func (b *CommonBuilder) Run(hostData *model.HostData) {
118117

119118
b.runVirtualization(hostData)
120119

121-
if hostData.ClusterMembershipStatus.VeritasClusterServer {
122-
clusterinfos := make([]model.ClusterInfo, 0, 1)
123-
124-
vmnames := []string{}
125-
vms := make([]model.VMInfo, 0, len(hostData.ClusterMembershipStatus.VeritasClusterHostnames))
126-
127-
for _, vm := range hostData.ClusterMembershipStatus.VeritasClusterHostnames {
128-
vmnames = append(vmnames, vm)
129-
130-
vms = append(vms, model.VMInfo{
131-
Hostname: vm,
132-
})
133-
}
134-
135-
sort.Strings(vmnames)
136-
137-
clusterInfo := model.ClusterInfo{
138-
Name: strings.Join(vmnames, "-"),
139-
VMs: vms,
140-
}
141-
142-
clusterinfos = append(clusterinfos, clusterInfo)
143-
hostData.Clusters = clusterinfos
144-
}
145-
146120
b.runMySQL(hostData)
147121

148122
b.runPostgreSQL(hostData)

0 commit comments

Comments
 (0)