Skip to content

Commit

Permalink
check for null tags and ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed May 25, 2023
1 parent c957c95 commit ee4d376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/tags/key_value_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,10 @@ func (tags KeyValueTags) ResolveDuplicates(ctx context.Context, defaultConfig *D
if !c.IsNull() && c.IsKnown() {
for k, v := range c.AsValueMap() {
if _, ok := configTags[k]; !ok {
configTags[k] = v.AsString()
// config tags can be null values. Ignore.
if !v.IsNull() {
configTags[k] = v.AsString()
}
}
}
}
Expand Down

0 comments on commit ee4d376

Please sign in to comment.