1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-27 11:21:08 +00:00

Fix panic when IgnoreDockerVersion is nil

This commit is contained in:
Darren Shepherd 2020-08-24 22:27:09 -07:00 committed by Denise
parent 2bced88bad
commit abf63e4a08

View File

@ -81,7 +81,9 @@ func (c *Cluster) InvertIndexHosts() error {
for k, v := range host.Labels { for k, v := range host.Labels {
newHost.ToAddLabels[k] = v newHost.ToAddLabels[k] = v
} }
newHost.IgnoreDockerVersion = *c.IgnoreDockerVersion if c.IgnoreDockerVersion != nil {
newHost.IgnoreDockerVersion = *c.IgnoreDockerVersion
}
if c.BastionHost.Address != "" { if c.BastionHost.Address != "" {
// Add the bastion host information to each host object // Add the bastion host information to each host object
newHost.BastionHost = c.BastionHost newHost.BastionHost = c.BastionHost