From bd2968cf51b7dc4be2d71ddbbed68d9028e951c6 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Tue, 22 Dec 2020 21:51:19 -0800 Subject: [PATCH] Fix minor bug in hosts template for bool value --- etc/hosts.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}