Skip to content
This repository was archived by the owner on Jan 8, 2023. It is now read-only.

Commit 89b0f64

Browse files
authored
change the order or resource detection to correctly identify container resource. (#12)
1 parent c636715 commit 89b0f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gke/gke.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func Detect(ctx context.Context) (*resource.Resource, error) {
5858
return containerRes, nil
5959
}
6060

61-
return resource.MultiDetector(k8s, container, gcp.Detect)(ctx)
61+
return resource.MultiDetector(container, k8s, gcp.Detect)(ctx)
6262
}
6363

6464
// logError logs error only if the error is present and it is not 'not defined'

0 commit comments

Comments
 (0)