We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3d9fc commit 1215a9bCopy full SHA for 1215a9b
dynatrace/api/v1/config/synthetic/monitors/tag_with_source_info.go
@@ -41,7 +41,18 @@ func (me TagsWithSourceInfo) MarshalHCL(properties hcl.Properties) error {
41
}
42
43
func (me *TagsWithSourceInfo) UnmarshalHCL(decoder hcl.Decoder) error {
44
- return decoder.DecodeSlice("tag", me)
+ if err := decoder.DecodeSlice("tag", me); err != nil {
45
+ return err
46
+ }
47
+ finalEntries := TagsWithSourceInfo{}
48
+ for _, entry := range *me {
49
+ if len(entry.Key) == 0 {
50
+ continue
51
52
+ finalEntries = append(finalEntries, entry)
53
54
+ *me = finalEntries
55
+ return nil
56
57
58
// Tag with source of a Dynatrace entity
0 commit comments