Skip to content

Commit 170f1e5

Browse files
urandom2pongad
authored andcommitted
make MetadataConfig.getAttribute() public (#3307)
1 parent a83f9ed commit 170f1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static String getClusterName() {
5757
return getAttribute("instance/attributes/cluster-name");
5858
}
5959

60-
private static String getAttribute(String attributeName) {
60+
public static String getAttribute(String attributeName) {
6161
try {
6262
URL url = new URL(METADATA_URL + attributeName);
6363
HttpURLConnection connection = (HttpURLConnection) url.openConnection();

0 commit comments

Comments
 (0)