You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2017/07/31 14:10:26 UTC

[11/25] ambari git commit: AMBARI-21589. Service repos are not updated with "latest" url in repoinfo.xml (echekanskiy)

AMBARI-21589. Service repos are not updated with "latest" url in repoinfo.xml (echekanskiy)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d9e8f4f8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d9e8f4f8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d9e8f4f8

Branch: refs/heads/branch-feature-AMBARI-21450
Commit: d9e8f4f8ce18802b014b5803627e06c4d03a469e
Parents: 096d75d
Author: Eugene Chekanskiy <ec...@apache.org>
Authored: Thu Jul 27 20:15:44 2017 +0300
Committer: Eugene Chekanskiy <ec...@apache.org>
Committed: Thu Jul 27 20:15:44 2017 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ambari/server/stack/StackModule.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d9e8f4f8/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
index dd23e76..f19464f 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
@@ -1224,6 +1224,9 @@ public class StackModule extends BaseModule<StackModule, StackInfo> implements V
         RepositoryXml serviceRepoXml = ssd.getRepoFile();
         if (null != serviceRepoXml) {
           repos.addAll(serviceRepoXml.getRepositories());
+          if (null != serviceRepoXml.getLatestURI()) {
+            stackContext.registerRepoUpdateTask(serviceRepoXml.getLatestURI(), this);
+          }
         }
       }
     }