Преглед изворни кода

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

Jayush Luniya пре 10 година
родитељ
комит
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
       # try to get basedir for scripts
       # it's needed for server side scripts to properly use resource management
       # 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:
       if matchObj:
         basedir = matchObj.group(1)
         basedir = matchObj.group(1)
         Logger.logger = logging.getLogger('resource_management')
         Logger.logger = logging.getLogger('resource_management')