浏览代码

AMBARI-2433. Bootstrap failed on rhel 5.6. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494801 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 年之前
父节点
当前提交
3e619d3ff9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-server/src/main/python/setupAgent.py

+ 1 - 1
ambari-server/src/main/python/setupAgent.py

@@ -77,7 +77,7 @@ def configureAgent(server_hostname):
 
 
 def runAgent(passPhrase, expected_hostname):
 def runAgent(passPhrase, expected_hostname):
   os.environ[AMBARI_PASSPHRASE_VAR] = passPhrase
   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:
   try:
 
 
     ret = execOsCommand(["tail", "-20", "/var/log/ambari-agent/ambari-agent.log"])
     ret = execOsCommand(["tail", "-20", "/var/log/ambari-agent/ambari-agent.log"])