From 170f1e52162053f5a567bae89be9db0e59974be8 Mon Sep 17 00:00:00 2001 From: Colin Arnott Date: Sat, 26 May 2018 01:14:36 +0000 Subject: [PATCH] make MetadataConfig.getAttribute() public (#3307) --- .../src/main/java/com/google/cloud/MetadataConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java b/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java index a285462165a5..9b1ee3ffc635 100644 --- a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java +++ b/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java @@ -57,7 +57,7 @@ public static String getClusterName() { return getAttribute("instance/attributes/cluster-name"); } - private static String getAttribute(String attributeName) { + public static String getAttribute(String attributeName) { try { URL url = new URL(METADATA_URL + attributeName); HttpURLConnection connection = (HttpURLConnection) url.openConnection();