Procházet zdrojové kódy

AMBARI-4669. Tweak command_detail message

Sumit Mohanty před 11 roky
rodič
revize
50a7a50a95

+ 1 - 1
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java

@@ -212,7 +212,7 @@ public class AmbariCustomCommandExecutionHelper {
     StringBuffer sb = new StringBuffer();
     sb.append(actionRequest.getCommandName());
     if (actionRequest.getServiceName() != null && !actionRequest.getServiceName().equals("")) {
-      sb.append(" for " + actionRequest.getServiceName());
+      sb.append(" " + actionRequest.getServiceName());
     }
     if (actionRequest.getComponentName() != null && !actionRequest.getComponentName().equals("")) {
       sb.append("/" + actionRequest.getComponentName());

+ 1 - 0
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java

@@ -3971,6 +3971,7 @@ public class AmbariManagementControllerTest {
       }
     }
     Assert.assertNotNull(hrc);
+    Assert.assertEquals("RESTART HDFS/HDFS_CLIENT", hrc.getCommandDetail());
     Map<String, String> roleParams = hrc.getExecutionCommandWrapper()
       .getExecutionCommand().getRoleParams();