From f3cf217cd06397d0f25acc78c026edf73b95a17a Mon Sep 17 00:00:00 2001 From: rob salmond Date: Fri, 15 Mar 2019 16:26:23 -0600 Subject: [PATCH 1/2] use fqdn for gce metadata endpoint --- logging/google/cloud/logging/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/google/cloud/logging/_helpers.py b/logging/google/cloud/logging/_helpers.py index 837028f716d7..bca9e9158080 100644 --- a/logging/google/cloud/logging/_helpers.py +++ b/logging/google/cloud/logging/_helpers.py @@ -21,7 +21,7 @@ from google.cloud.logging.entries import StructEntry from google.cloud.logging.entries import TextEntry -METADATA_URL = "http://metadata/computeMetadata/v1/" +METADATA_URL = "http://metadata.google.internal/computeMetadata/v1/" METADATA_HEADERS = {"Metadata-Flavor": "Google"} From fc13845e314eeaea0d4d426ed39ba5fea4c24cab Mon Sep 17 00:00:00 2001 From: rob salmond Date: Tue, 19 Mar 2019 10:08:00 -0600 Subject: [PATCH 2/2] prevent recursive DNS resolution --- logging/google/cloud/logging/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/google/cloud/logging/_helpers.py b/logging/google/cloud/logging/_helpers.py index bca9e9158080..ed7a0ba8cf7b 100644 --- a/logging/google/cloud/logging/_helpers.py +++ b/logging/google/cloud/logging/_helpers.py @@ -21,7 +21,7 @@ from google.cloud.logging.entries import StructEntry from google.cloud.logging.entries import TextEntry -METADATA_URL = "http://metadata.google.internal/computeMetadata/v1/" +METADATA_URL = "http://metadata.google.internal./computeMetadata/v1/" METADATA_HEADERS = {"Metadata-Flavor": "Google"}