Skip to content

Commit

Permalink
chore: location for gke (googleapis#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhigarg92 authored Oct 3, 2024
1 parent 5cebcb4 commit fc18775
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static String detectClientLocation() {
// All platform except GKE uses "cloud_region" for region attribute.
String region = detectedPlatform.getAttributes().get("cloud_region");
if (detectedPlatform.getSupportedPlatform() == GOOGLE_KUBERNETES_ENGINE) {
region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_LOCATION_TYPE_REGION);
region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_CLUSTER_LOCATION);
}
return region == null ? "global" : region;
}
Expand Down

0 comments on commit fc18775

Please sign in to comment.