Quellcode durchsuchen

AMBARI-14929. Enable security wizard hangs (srimanth)

Srimanth Gunturi vor 9 Jahren
Ursprung
Commit
ab06c68aca
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      ambari-web/app/controllers/wizard/step7_controller.js

+ 1 - 1
ambari-web/app/controllers/wizard/step7_controller.js

@@ -699,7 +699,7 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, App.E
       if (App.get('isHaEnabled')) this.addHawqConfigsOnNnHa(configs);
       if (App.get('isRMHaEnabled')) this.addHawqConfigsOnRMHa(configs);
     }
-    if (Object.keys(this.get('content.hosts')).length === 1) this.removeHawqStandbyHostAddressConfig(configs);
+    if (this.get('content.hosts') && Object.keys(this.get('content.hosts')).length === 1) this.removeHawqStandbyHostAddressConfig(configs);
     return configs
   },