diff --git a/etc/hosts.tmpl b/etc/hosts.tmpl index 1bdabf71..d02c5eea 100644 --- a/etc/hosts.tmpl +++ b/etc/hosts.tmpl @@ -3,7 +3,7 @@ {{range $node := $.AllNodes}} # Entry for {{$node.Id.Get}} {{- range $devname, $netdev := $node.NetDevs}} -{{- if $netdev.Default}} +{{- if $netdev.Default.GetB}} {{$netdev.Ipaddr.Get}} {{$node.Id.Get}} {{- else}} {{$netdev.Ipaddr.Get}} {{$node.Id.Get}}-{{$devname}}