diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-08-27 01:32:30 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-08-27 01:32:30 +0100 |
commit | 921818bca208f0c70e85ec670074cb3905cbbc82 (patch) | |
tree | 4aa67ad2bb2083bd486db3f99680d6d08a2c36b3 /vendor/google.golang.org/cloud/compute | |
parent | 7f1c9358805302344a89c1fed4eab1342931b061 (diff) |
Update dependencies
Diffstat (limited to 'vendor/google.golang.org/cloud/compute')
-rw-r--r-- | vendor/google.golang.org/cloud/compute/metadata/metadata.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/google.golang.org/cloud/compute/metadata/metadata.go b/vendor/google.golang.org/cloud/compute/metadata/metadata.go index 9821843..b791790 100644 --- a/vendor/google.golang.org/cloud/compute/metadata/metadata.go +++ b/vendor/google.golang.org/cloud/compute/metadata/metadata.go @@ -263,7 +263,8 @@ func systemInfoSuggestsGCE() bool { return false } slurp, _ := ioutil.ReadFile("/sys/class/dmi/id/product_name") - return strings.TrimSpace(string(slurp)) == "Google" + name := strings.TrimSpace(string(slurp)) + return name == "Google" || name == "Google Compute Engine" } // Subscribe subscribes to a value from the metadata service. |