Fix dumping ActionConfig structure (#2029)
This commit is contained in:
parent
8323f2f100
commit
05e3eed893
2 changed files with 6 additions and 2 deletions
|
|
@ -60,8 +60,9 @@ type ActionConfig struct {
|
|||
func (a ActionConfig) String() string {
|
||||
var s []string
|
||||
for k, v := range structs.Map(a) {
|
||||
if v != nil && !reflect.ValueOf(v).IsNil() {
|
||||
s = append(s, fmt.Sprintf("%s:%v", k, v))
|
||||
val := reflect.ValueOf(v)
|
||||
if v != nil && !val.IsNil() {
|
||||
s = append(s, fmt.Sprintf("%s:%v", k, val.Elem()))
|
||||
}
|
||||
}
|
||||
return strings.Join(s, ", ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue