ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] git commit: AMBARI-7900. Incorrect ntp warning on Confirm hosts page (aonishuk)
Date Wed, 22 Oct 2014 14:07:07 GMT
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/3b7dbb06
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3b7dbb06
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3b7dbb06

Branch: refs/heads/branch-1.7.0
Commit: 3b7dbb06ad50e185945ccd433673c1b0d96df915
Parents: e6d76c0
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Oct 22 17:07:00 2014 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Oct 22 17:07:00 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/3b7dbb06/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/3b7dbb06/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 71129c7..271f2cf 100644
--- a/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
+++ b/ambari-agent/src/test/python/ambari_agent/TestHostInfo.py
@@ -466,7 +466,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