diff --git a/cluster/hosts.go b/cluster/hosts.go index 4be2d2b9..fce120fa 100644 --- a/cluster/hosts.go +++ b/cluster/hosts.go @@ -81,7 +81,9 @@ func (c *Cluster) InvertIndexHosts() error { for k, v := range host.Labels { newHost.ToAddLabels[k] = v } - newHost.IgnoreDockerVersion = *c.IgnoreDockerVersion + if c.IgnoreDockerVersion != nil { + newHost.IgnoreDockerVersion = *c.IgnoreDockerVersion + } if c.BastionHost.Address != "" { // Add the bastion host information to each host object newHost.BastionHost = c.BastionHost