Skip to content

Commit

Permalink
Remove dns based cloud detection (#1812)
Browse files Browse the repository at this point in the history
* remove dns based cloud checks

* remove dns based cloud checks
  • Loading branch information
pascal-fischer authored Apr 9, 2024
1 parent c1f66d1 commit 22b2caf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 82 deletions.
2 changes: 0 additions & 2 deletions client/system/detect_cloud/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ func Detect(ctx context.Context) string {
detectDigitalOcean,
detectGCP,
detectOracle,
detectIBMCloud,
detectSoftlayer,
detectVultr,
}

Expand Down
2 changes: 1 addition & 1 deletion client/system/detect_cloud/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func detectGCP(ctx context.Context) string {
req, err := http.NewRequestWithContext(ctx, "GET", "http://metadata.google.internal", nil)
req, err := http.NewRequestWithContext(ctx, "GET", "http://169.254.169.254", nil)
if err != nil {
return ""
}
Expand Down
54 changes: 0 additions & 54 deletions client/system/detect_cloud/ibmcloud.go

This file was deleted.

25 changes: 0 additions & 25 deletions client/system/detect_cloud/softlayer.go

This file was deleted.

0 comments on commit 22b2caf

Please sign in to comment.