Fix IOError when server/hosts/monitors/site_console_patterns_override.py does not exist
Signed-off-by: James Ren <[email protected]> --- autotest/server/hosts/monitors/monitors_util.py 2010-01-15 12:50:00.000000000 -0800 +++ autotest/server/hosts/monitors/monitors_util.py 2010-01-15 12:50:00.000000000 -0800 @@ -147,7 +147,7 @@ site_overrides_file = None patterns_file = open(patterns_path) try: - if site_overrides_path: + if os.path.exists(site_overrides_path): site_overrides_file = open(site_overrides_path) try: return build_alert_hooks(patterns_file, warnfile, _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
