ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/2] git commit: AMBARI-7900. Incorrect ntp warning on Confirm hosts page (aonishuk)
Date Wed, 22 Oct 2014 14:07:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 e6d76c09c -> 3b7dbb06a
  refs/heads/trunk 0a638f3cf -> fd045a4d9


AMBARI-7900. Incorrect ntp warning on Confirm hosts page (aonishuk)


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

Branch: refs/heads/trunk
Commit: fd045a4d97010f241252508ac82a7efdbf11a20e
Parents: 0a638f3
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Oct 22 17:06:57 2014 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Oct 22 17:06:57 2014 +0300

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/HostInfo.py     | 2 +-
 ambari-agent/src/test/python/ambari_agent/TestHostInfo.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fd045a4d/ambari-agent/src/main/python/ambari_agent/HostInfo.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/HostInfo.py b/ambari-agent/src/main/python/ambari_agent/HostInfo.py
index 4b7647d..9a02027 100644
--- a/ambari-agent/src/main/python/ambari_agent/HostInfo.py
+++ b/ambari-agent/src/main/python/ambari_agent/HostInfo.py
@@ -38,7 +38,7 @@ import socket
 logger = logging.getLogger()
 
 # service cmd
-SERVICE_CMD = "/sbin/service"
+SERVICE_CMD = "service"
 
 
 class HostInfo:

http://git-wip-us.apache.org/repos/asf/ambari/blob/fd045a4d/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py b/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
index 1f682dd..8cf9220 100644
--- a/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
+++ b/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
@@ -469,7 +469,7 @@ class TestHostInfo(TestCase):
     self.assertEquals(result[0]['name'], 'service1')
     self.assertEquals(result[0]['desc'], '')
     self.assertEquals(str(subproc_popen.call_args_list),
-                      "[call(['/sbin/service', 'service1', 'status'], stderr=-1, stdout=-1)]")
+                      "[call(['service', 'service1', 'status'], stderr=-1, stdout=-1)]")
 
     p.returncode = 1
     p.communicate.return_value = ('out', 'err')


Mime
View raw message