Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getConfigurationSuccessCallback: function(data) {
var c = data.items.findBy('type', 'yarn-site');
if (!Em.isNone(c)) {
var properties = Em.get(c, 'properties'),
port = '8188';
if (!Em.isNone(properties)) {
port = properties['yarn.timeline-service.webapp.address'].match(/:(\d+)/)[1];
}
App.HiveJob.store.getById('service', 'YARN').set('ahsWebPort', port);
this.set('portIsLoaded', true);
}
}