Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
#1046 lets load the ZK user from zookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan authored and Jenkins CI committed Apr 15, 2014
1 parent 1890ad4 commit c431fc0
Showing 1 changed file with 10 additions and 3 deletions.
Expand Up @@ -718,9 +718,16 @@ public String getZookeeperUrl() {
@Override
public String getZooKeeperUser() {
assertValid();
return "admin";
// TODO
// return getZookeeperInfo("zookeeper.user");
String answer = null;
try {
answer = getZookeeperInfo("zookeeper.user");
} catch (Exception e) {
LOGGER.warn("could not find zookeeper.user: " + e, e);
}
if (Strings.isNullOrEmpty(answer)) {
answer = "admin";
}
return answer;
}

@Override
Expand Down

0 comments on commit c431fc0

Please sign in to comment.