From f03f97519d1792f4b91fa312bd1662174cbf2c77 Mon Sep 17 00:00:00 2001 From: Abder Benbachir Date: Fri, 8 May 2020 18:34:51 -0400 Subject: [PATCH] remove sles11 hack, was fixed in configure_syslog.sh (#1104) --- Diagnostic/Utils/omsagent_util.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Diagnostic/Utils/omsagent_util.py b/Diagnostic/Utils/omsagent_util.py index 160ad0063..f825d15c0 100644 --- a/Diagnostic/Utils/omsagent_util.py +++ b/Diagnostic/Utils/omsagent_util.py @@ -43,12 +43,6 @@ def setup_omsagent_for_lad(run_command): return 1, 'setup_omsagent_for_lad(): omsagent universal installer shell execution failed. ' \ 'Output: {0}'.format(cmd_output) - # 1.1. Modify configure_syslog.sh to work around on a SLES 11 anomaly: No "syslog-ng" service, but "syslog" - # even though syslog-ng is installed, causing configure_syslog.sh to fail. Strange is that even though - # the configure_syslog.sh fails, it seems syslog collection works, so it's not really a bug, though - # it's just not very clean. - run_command(r'sed -i "s/RestartService syslog-ng\\s*$/RestartService syslog-ng || RestartService syslog/g" /opt/microsoft/omsagent/bin/configure_syslog.sh') - # 2. Onboard to LAD workspace. Should be a noop if it's already done. if not os.path.isdir(omsagent_lad_dir): cmd_exit_code, cmd_output = run_command(omsagent_lad_workspace_cmd_template.format(args='-w LAD'))