Skip to content

Commit

Permalink
cluster/spec: check platform conflicts after hosts filled
Browse files Browse the repository at this point in the history
Signed-off-by: 9547 <nivefive9547@gmail.com>
  • Loading branch information
jsvisa committed Jun 16, 2021
1 parent c5e6207 commit e6cab3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cluster/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,11 @@ func AlertManagerEndpoints(alertmanager []*AlertmanagerSpec, user string, enable

// FillHostArch fills the topology with the given host->arch
func (s *Specification) FillHostArch(hostArch map[string]string) error {
return FillHostArch(s, hostArch)
if err := FillHostArch(s, hostArch); err != nil {
return err
}

return s.platformConflictsDetect()
}

// FillHostArch fills the topology with the given host->arch
Expand Down

0 comments on commit e6cab3c

Please sign in to comment.