We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83f9ed commit 170f1e5Copy full SHA for 170f1e5
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java
@@ -57,7 +57,7 @@ public static String getClusterName() {
57
return getAttribute("instance/attributes/cluster-name");
58
}
59
60
- private static String getAttribute(String attributeName) {
+ public static String getAttribute(String attributeName) {
61
try {
62
URL url = new URL(METADATA_URL + attributeName);
63
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
0 commit comments