Skip to content

Commit

Permalink
debug: add unit to condition string
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Aug 6, 2024
1 parent baa4091 commit 6f3af3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/snclient/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (c *Condition) String() string {
return " (" + strings.Join(groups, " "+c.groupOperator.String()+" ") + ") "
}

return fmt.Sprintf("%s %s %v", c.keyword, c.operator.String(), c.value)
return fmt.Sprintf("%s %s %v%s", c.keyword, c.operator.String(), c.value, c.unit)
}

// Match checks if given map matches current condition
Expand Down

0 comments on commit 6f3af3d

Please sign in to comment.