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:13:29 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 6576da657 -> 24b005a7e


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/24b005a7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/24b005a7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/24b005a7

Branch: refs/heads/trunk
Commit: 24b005a7edafe104e914a0763394a7757f8852a7
Parents: 6576da6
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:10:45 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/24b005a7/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