Last active
August 11, 2017 10:15
-
-
Save cimfalab/b3acb60b568e251121373f8df6b1bb8b to your computer and use it in GitHub Desktop.
bulk_operations_controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_getComponentsFromServerForHostComponentsDecommissionCallBack: function (operationData, data) { | |
... | |
if (components.length) { | |
... | |
if (turn_off) { | |
// For recommession | |
if (svcName === "YARN" || svcName === "HBASE" || svcName === "HDFS") { | |
App.router.get('mainHostDetailsController').doRecommissionAndStart(hostNames, svcName, masterName, slaveName); | |
} | |
} else { | |
... | |
if (turn_off) { | |
parameters['included_hosts'] = hostsWithComponentInProperState.join(',') | |
} | |
else { | |
parameters['excluded_hosts'] = hostsWithComponentInProperState.join(','); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment