Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 c76cac371 -> c68056205


AMBARI-18877. Ambari change hcat.proxy.hosts value during add service. Small 
fix (dlysnichenko)


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

Branch: refs/heads/branch-2.5
Commit: c68056205eec277486b288922d52def75cbfa95e
Parents: c76cac3
Author: Lisnichenko Dmitro <[email protected]>
Authored: Wed Nov 16 17:31:45 2016 +0200
Committer: Lisnichenko Dmitro <[email protected]>
Committed: Wed Nov 16 17:31:45 2016 +0200

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c6805620/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index d2b12f9..5c867bd 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -220,7 +220,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
           ambariHostName = socket.getfqdn()
           is_wildcard_value, hosts = self.get_hosts_for_proxyuser(ambari_user, 
services)
           if not is_wildcard_value:
-            hosts.put(ambariHostName)
+            hosts.add(ambariHostName)
             
putCoreSiteProperty("hadoop.proxyuser.{0}.hosts".format(ambari_user), 
",".join(hosts))
           
putCoreSiteProperty("hadoop.proxyuser.{0}.groups".format(ambari_user), "*")
           old_ambari_user = self.getOldAmbariUser(services)

Reply via email to