Skip to content

Commit daf35ef

Browse files
Fix: Export functionlity potentially panics when pulling a list of entries (web applications) produces unnamed records
1 parent 7487b60 commit daf35ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dynatrace/export/module.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,8 @@ func (me *Module) Discover() error {
13391339
stubs = stubs.Sort()
13401340
for _, stub := range stubs {
13411341
if stub.Name == "" {
1342-
panic(me.Type)
1342+
fmt.Printf("Ignoring Resource - Type: %s - ID: %s\n", me.Type, stub.ID)
1343+
continue
13431344
}
13441345
if IsIgnoredResource(me.Type, stub.ID) {
13451346
fmt.Printf("Ignoring Resource - Type: %s - ID: %s\n", me.Type, stub.ID)

0 commit comments

Comments
 (0)