You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2014/07/21 19:43:12 UTC

git commit: AMBARI-6552. In Ubuntu host, failed to install and register Ambari agents (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk 29475cb1e -> afb7fea3b


AMBARI-6552. In Ubuntu host, failed to install and register Ambari agents (aonishuk)


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

Branch: refs/heads/trunk
Commit: afb7fea3bb6c9927141e34ccb8ccc75c0fb40dfd
Parents: 29475cb
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Jul 21 20:43:06 2014 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Jul 21 20:43:06 2014 +0300

----------------------------------------------------------------------
 ambari-server/src/main/python/setupAgent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/afb7fea3/ambari-server/src/main/python/setupAgent.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/setupAgent.py b/ambari-server/src/main/python/setupAgent.py
index 7e5524d..772fc15 100755
--- a/ambari-server/src/main/python/setupAgent.py
+++ b/ambari-server/src/main/python/setupAgent.py
@@ -108,7 +108,7 @@ def findNearestAgentPackageVersion(projectVersion):
       Command = ["bash", "-c", "apt-cache -q show ambari-agent |grep 'Version\:'|cut -d ' ' -f 2|tr -d '\\n'|sed -s 's/[-|~][A-Za-z0-9]*//'"]
     else:
       Command = ["bash", "-c", "apt-cache -q show ambari-agent |grep 'Version\:'|cut -d ' ' -f 2|grep '" +
-               projectVersion + "'|tr -d '\\n'|sed -s 's/[-|~][A-Za-z\d]*//'"]
+               projectVersion + "'|tr -d '\\n'|sed -s 's/[-|~][A-Za-z0-9]*//'"]
   else:
     Command = ["bash", "-c", "yum -q list all ambari-agent | grep '" + projectVersion +
                               "' | sed -re 's/\s+/ /g' | cut -d ' ' -f 2 | head -n1 | sed -e 's/-\w[^:]*//1' "]