Skip to content

Commit

Permalink
chore: metadata gce cloud run comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bgdnvk committed Jun 21, 2024
1 parent 5cb0c26 commit b9d2593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compute/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ var (
)

// OnGCE reports whether this process is running on Google Compute Engine.
// Works for Cloud Run as well.
func OnGCE() bool {
onGCEOnce.Do(initOnGCE)
return onGCE
Expand Down

0 comments on commit b9d2593

Please sign in to comment.