46bbfc3549
GCE and AWS both expose metadata servers, and GCE's 404 response includes the URL in the content, which maatches the regex. So, check the response code as well and if a 4xx code comes back, take that to meanit's not AWS. |
||
---|---|---|
.. | ||
allocdir | ||
config | ||
driver | ||
executor | ||
fingerprint | ||
testutil | ||
alloc_runner.go | ||
alloc_runner_test.go | ||
client.go | ||
client_test.go | ||
task_runner.go | ||
task_runner_test.go | ||
util.go | ||
util_test.go |