Merge pull request #7 from mashion/fix-zk-setup

Allow blank mysql passwords
This commit is contained in:
cheddar 2012-10-29 09:07:04 -07:00
commit aea00737b8

View File

@ -64,8 +64,13 @@ public class ZkSetup
private final String password;
{
username = args[3].split(":")[0];
password = args[3].split(":")[1];
String[] splitArgs = args[3].split(":");
username = splitArgs[0];
if (splitArgs.length > 1) {
password = splitArgs[1];
} else {
password = "";
}
}
@Override