From 68ec517ebbab474deed0d8dd6fe468602497880b Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Fri, 27 Nov 2020 17:10:20 -0800 Subject: [PATCH] Fixed string() method for node configurations --- internal/pkg/node/methods.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 7cbce368..8ccbb6f5 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -5,7 +5,19 @@ import ( ) func (self *NodeInfoEntry) String() string { - return self.Get() + if self.value != "" { + return self.value + } + if self.group != "" { + return self.group + } + if self.profile != "" { + return self.profile + } + if self.def != "" { + return self.def + } + return "--" } func (self *NodeInfoEntry) Source() string {