String uris = urisBuilder.toString();
if(uris.endsWith(",")) {
uris = uris.substring(0, uris.length() - 1);
}
FabricPlugin.getLogger().debug("Creating fabric with uris: " + uris);
FabricDetails details = FabricDetails.newInstance(fabricName, uris);
details.setUserName(arguments.getUser());
details.setPassword(arguments.getPassword());
details.setZkPassword(arguments.getZookeeperPassword());
new FabricDetailsAddAction(fabrics).addCloud(details);
}});
return Status.OK_STATUS;
} catch (Throwable e) {
return new Status(Status.ERROR, FabricPlugin.PLUGIN_ID, "Failed to create Fabric: " + fabricName, e);