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:
parent
2bced88bad
commit
abf63e4a08
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user