Importing Brad's gce package into the cloud package. I addressed the issues we've discussed earlier.
LGTM
LGTM https://codereview.appspot.com/146260043/diff/80001/compute/metadata/metadata.go File compute/metadata/metadata.go (right): https://codereview.appspot.com/146260043/diff/80001/compute/metadata/metadata... compute/metadata/metadata.go:120: res, err := metaClient.Get("http://metadata.google.internal") maybe add a comment above this saying: // We use the DNS name of the metadata service here instead of the IP address // because we expect that to fail faster in the not-on-GCE case.
Submitted. https://codereview.appspot.com/146260043/diff/80001/compute/metadata/metadata.go File compute/metadata/metadata.go (right): https://codereview.appspot.com/146260043/diff/80001/compute/metadata/metadata... compute/metadata/metadata.go:120: res, err := metaClient.Get("http://metadata.google.internal") On 2014/09/24 23:50:28, bradfitz wrote: > maybe add a comment above this saying: > > // We use the DNS name of the metadata service here instead of the IP address > // because we expect that to fail faster in the not-on-GCE case. Done.