Skip to content

Commit e5821f4

Browse files
author
Arta Asadi
committed
fix: fix get labels and annotations
1 parent 7cb243f commit e5821f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

discovery/pkg/task/run-task.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ func GetIntegrationsFromQuery(coreServiceClient coreClient.CoreServiceClient, pa
239239
}
240240
var integrations []Integration
241241
for _, r := range queryResponse.Result {
242-
integ := Integration{}
242+
integ := Integration{
243+
Annotations: make(map[string]string),
244+
Labels: make(map[string]string),
245+
}
243246
for i, rc := range r {
244247
switch queryResponse.Headers[i] {
245248
case "integration_id":

0 commit comments

Comments
 (0)