Browse Source

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

Jayush Luniya 10 years ago
parent
commit
167baf39e9
1 changed files with 1 additions and 1 deletions
  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')