public static String crmConfigureCommit(final Host host, final String config, final Application.RunMode runMode) {
final Map<String, String> replaceHash = new HashMap<String, String>();
replaceHash.put("@CONFIG@", Tools.escapeQuotes(Matcher.quoteReplacement(config), 1));
final String command = host.getDistCommand("CRM.configureCommit", replaceHash);
final SshOutput ret = execCommand(host, command, runMode);
if (ret.getExitCode() == 0) {
return ret.getOutput();
}
return "error";
}