|
@@ -1393,10 +1393,14 @@ App.config = Em.Object.create({
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
*/
|
|
*/
|
|
shouldSupportFinal: function (serviceName, filename) {
|
|
shouldSupportFinal: function (serviceName, filename) {
|
|
- if (!serviceName || serviceName == 'MISC' || !filename) {
|
|
|
|
|
|
+ var unsupportedServiceNames = ['MISC', 'Cluster'];
|
|
|
|
+ if (!serviceName || unsupportedServiceNames.contains(serviceName) || !filename) {
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
var stackService = App.StackService.find().findProperty('serviceName', serviceName);
|
|
var stackService = App.StackService.find().findProperty('serviceName', serviceName);
|
|
|
|
+ if (!stackService) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
var supportsFinal = this.getConfigTypesInfoFromService(stackService).supportsFinal;
|
|
var supportsFinal = this.getConfigTypesInfoFromService(stackService).supportsFinal;
|
|
var matchingConfigType = supportsFinal.find(function (configType) {
|
|
var matchingConfigType = supportsFinal.find(function (configType) {
|
|
return filename.startsWith(configType);
|
|
return filename.startsWith(configType);
|