Fixed string() method for node configurations

This commit is contained in:
Gregory Kurtzer
2020-11-27 17:10:20 -08:00
parent d8ce0157c1
commit 68ec517ebb

View File

@@ -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 {