Selaa lähdekoodia

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

Lisnichenko Dmitro 10 vuotta sitten
vanhempi
commit
f9fe992f1d

+ 2 - 1
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: