You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2013/06/20 01:20:34 UTC

svn commit: r1494801 - /incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py

Author: swagle
Date: Wed Jun 19 23:20:33 2013
New Revision: 1494801

URL: http://svn.apache.org/r1494801
Log:
AMBARI-2433. Bootstrap failed on rhel 5.6. (swagle)

Modified:
    incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py

Modified: incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py?rev=1494801&r1=1494800&r2=1494801&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py (original)
+++ incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py Wed Jun 19 23:20:33 2013
@@ -77,7 +77,7 @@ def configureAgent(server_hostname):
 
 def runAgent(passPhrase, expected_hostname):
   os.environ[AMBARI_PASSPHRASE_VAR] = passPhrase
-  agent_retcode = subprocess.call("/usr/sbin/ambari-agent start --expected-hostname={0}".format(expected_hostname), shell=True)
+  agent_retcode = subprocess.call("/usr/sbin/ambari-agent start --expected-hostname=" + expected_hostname, shell=True)
   try:
 
     ret = execOsCommand(["tail", "-20", "/var/log/ambari-agent/ambari-agent.log"])