Repository: ambari Updated Branches: refs/heads/branch-3.0-perf 9095c910d -> c0a57a724
AMBARI-22349. Changing hostname causes ambari-agent start to fail (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c0a57a72 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c0a57a72 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c0a57a72 Branch: refs/heads/branch-3.0-perf Commit: c0a57a724adc42fd33aa2d87f988d94149285817 Parents: 9095c91 Author: Andrew Onishuk <[email protected]> Authored: Fri Nov 3 12:49:31 2017 +0200 Committer: Andrew Onishuk <[email protected]> Committed: Fri Nov 3 12:49:31 2017 +0200 ---------------------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c0a57a72/ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py b/ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py index 0fdf38b..a0882d3 100644 --- a/ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py +++ b/ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py @@ -75,7 +75,7 @@ class ClusterTopologyCache(ClusterCache): for cluster_id, cluster_topology in self.iteritems(): self.cluster_local_components[cluster_id] = [] - if not cluster_id in self.current_host_ids_to_cluster: + if not self.current_host_ids_to_cluster[cluster_id]: continue current_host_id = self.current_host_ids_to_cluster[cluster_id]
