Skip to content

Commit

Permalink
cluster: fix wrong keys detecting host arch (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Nov 11, 2021
1 parent 109ebff commit ab0e748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cluster/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ func (m *Manager) fillHostArch(s, p *tui.SSHConnectionProps, topo spec.Topology,
hostArch := map[string]string{}
var detectTasks []*task.StepDisplay
topo.IterInstance(func(inst spec.Instance) {
if _, ok := hostArch[inst.GetHost()]; ok {
if inst.Arch() != "" {
return
}
hostArch[inst.GetHost()] = ""
if inst.Arch() != "" {
if _, ok := hostArch[inst.GetHost()]; ok {
return
}
hostArch[inst.GetHost()] = ""

tf := task.NewBuilder().
RootSSH(
Expand Down

0 comments on commit ab0e748

Please sign in to comment.