Explorar o código

AMBARI-3990. Pluggable services: service_repository_info is not sent (dlysnichenko)

Lisnichenko Dmitro %!s(int64=11) %!d(string=hai) anos
pai
achega
e449076dd5

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

@@ -439,7 +439,7 @@ public class AmbariCustomCommandExecutionHelperImpl implements AmbariCustomComma
       // Choose repo that is relevant for host
       // Choose repo that is relevant for host
       ServiceOsSpecific.Repo serviceRepo= hostOs.getRepo();
       ServiceOsSpecific.Repo serviceRepo= hostOs.getRepo();
       if (serviceRepo != null) {
       if (serviceRepo != null) {
-        String serviceRepoInfo = gson.toJson(serviceInfo);
+        String serviceRepoInfo = gson.toJson(serviceRepo);
         hostParams.put(SERVICE_REPO_INFO, serviceRepoInfo);
         hostParams.put(SERVICE_REPO_INFO, serviceRepoInfo);
       }
       }
     }
     }