AMBARI-7858. When datanode install fails due to timeout, user is shown a 
strange warning (dlysnichenko)


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

Branch: refs/heads/branch-1.7.0
Commit: 5ec477cc2cac3a41b8da82cce96172422a4018d5
Parents: ee70e17
Author: Lisnichenko Dmitro <[email protected]>
Authored: Mon Oct 20 20:56:01 2014 +0300
Committer: Lisnichenko Dmitro <[email protected]>
Committed: Mon Oct 20 20:56:57 2014 +0300

----------------------------------------------------------------------
 .../python/resource_management/libraries/functions/file_system.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5ec477cc/ambari-common/src/main/python/resource_management/libraries/functions/file_system.py
----------------------------------------------------------------------
diff --git 
a/ambari-common/src/main/python/resource_management/libraries/functions/file_system.py
 
b/ambari-common/src/main/python/resource_management/libraries/functions/file_system.py
index ced4cd3..f395143 100644
--- 
a/ambari-common/src/main/python/resource_management/libraries/functions/file_system.py
+++ 
b/ambari-common/src/main/python/resource_management/libraries/functions/file_system.py
@@ -34,10 +34,11 @@ def get_and_cache_mount_points(refresh=False):
   :return: Returns the "mounts" variable. Calculates and caches it the first 
time if it is None or the "refresh" param
   is set to True.
   """
+  global mounts
+
   if mounts is not None and not refresh:
     return mounts
   else:
-    global mounts
     mounts = mount.get_mounted()
     for m in mounts:
       if m["mount_point"] is not None:

Reply via email to