Przeglądaj źródła

AMBARI-17468. Next button not enabled at Assign Slaves and Clients page (srimanth)

Srimanth Gunturi 9 lat temu
rodzic
commit
65d2f95e37

+ 1 - 2
ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/commands/ComponentLayoutValidationCommand.java

@@ -44,8 +44,7 @@ public class ComponentLayoutValidationCommand extends StackAdvisorCommand<Valida
   @Override
   protected void validate(StackAdvisorRequest request) throws StackAdvisorException {
     if (request.getHosts() == null || request.getHosts().isEmpty() || request.getServices() == null
-        || request.getServices().isEmpty() || request.getComponentHostsMap() == null
-        || request.getComponentHostsMap().isEmpty()) {
+        || request.getServices().isEmpty()) {
       throw new StackAdvisorException("Hosts, services and recommendations must not be empty");
     }
   }

+ 1 - 0
ambari-web/app/controllers/wizard/step6_controller.js

@@ -222,6 +222,7 @@ App.WizardStep6Controller = Em.Controller.extend(App.BlueprintMixin, {
     this.set('headers', []);
     this.clearError();
     this.set('isLoaded', false);
+    this.set('validationInProgress', false);
   },
 
   /**