Skip to content

Instantly share code, notes, and snippets.

@cimfalab
Created August 11, 2017 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cimfalab/c5292e96f33e35c8309f35842ad4e7be to your computer and use it in GitHub Desktop.
Save cimfalab/c5292e96f33e35c8309f35842ad4e7be to your computer and use it in GitHub Desktop.
details.js
updateZkConfigs: function (configs) {
var zks = this.getZkServerHosts();
var portValue = configs['zoo.cfg'] && Em.get(configs['zoo.cfg'], 'clientPort');
var zkPort = typeof portValue === 'udefined' ? '2181' : portValue;
var zksWithPort = this.concatZkNames(zks, zkPort);
this.setZKConfigs(configs, zksWithPort, zks);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment