Skip to content

Commit

Permalink
make MetadataConfig.getAttribute() public (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
urandom2 authored and pongad committed May 26, 2018
1 parent a83f9ed commit 170f1e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 170f1e5

Please sign in to comment.