ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpapirkovs...@apache.org
Subject ambari git commit: AMBARI-9967. Metrics monitor fails to start if old psutil installed. (mpapirkovskyy)
Date Fri, 06 Mar 2015 22:14:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 d9dc9e393 -> 3f9ae9ef0


AMBARI-9967. Metrics monitor fails to start if old psutil installed. (mpapirkovskyy)


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

Branch: refs/heads/branch-2.0.0
Commit: 3f9ae9ef0cc9eb535a361592eb6b7540430b6768
Parents: d9dc9e3
Author: Myroslav Papirkovskyy <mpapyrkovskyy@hortonworks.com>
Authored: Sat Mar 7 00:10:45 2015 +0200
Committer: Myroslav Papirkovskyy <mpapyrkovskyy@hortonworks.com>
Committed: Sat Mar 7 00:13:58 2015 +0200

----------------------------------------------------------------------
 .../src/main/python/core/__init__.py                               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3f9ae9ef/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/__init__.py
----------------------------------------------------------------------
diff --git a/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/__init__.py
b/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/__init__.py
index 84bb8a8..264a95d 100644
--- a/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/__init__.py
+++ b/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/__init__.py
@@ -28,7 +28,7 @@ IS_WINDOWS = platform.system() == "Windows"
 if not IS_WINDOWS:
   for dir in os.walk(path).next()[1]:
     if 'lib' in dir:
-      sys.path.append(os.path.join(path, dir))
+      sys.path.insert(1, os.path.join(path, dir))
 
 try:
   import psutil


Mime
View raw message