Skip to content

Commit

Permalink
Bug 1865707. Add host roles to hosts in baremetal survey
Browse files Browse the repository at this point in the history
This PR fixes a bug in the baremetal survey where the host role is not currently
set. If the choice is "control plane" the host role is "master" or else it will
be a "worker".
  • Loading branch information
kirankt committed Aug 11, 2020
1 parent 7f8e8ea commit 5e0fccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/asset/installconfig/baremetal/baremetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ func Platform() (*baremetal.Platform, error) {
fmt.Printf("invalid host - please try again")
continue
}
if hostRole == "control plane" {
host.Role = "master"
} else {
host.Role = hostRole
}
hosts = append(hosts, host)

more := false
Expand Down

0 comments on commit 5e0fccc

Please sign in to comment.