Просмотр исходного кода

[WinTP2] Oozie Alert: Oozie Server Status alert fires on Windows (jluniya)

Jayush Luniya 10 лет назад
Родитель
Сommit
167baf39e9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/alerts/script_alert.py

+ 1 - 1
ambari-agent/src/main/python/ambari_agent/alerts/script_alert.py

@@ -96,7 +96,7 @@ class ScriptAlert(BaseAlert):
 
       # try to get basedir for scripts
       # it's needed for server side scripts to properly use resource management
-      matchObj = re.match( r'((.*)services\/(.*)\/package\/)', self.path_to_script)
+      matchObj = re.match( r'((.*)services(.*)package)', self.path_to_script)
       if matchObj:
         basedir = matchObj.group(1)
         Logger.logger = logging.getLogger('resource_management')