Skip to content

Commit

Permalink
remove sles11 hack, was fixed in configure_syslog.sh (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
abenbachir authored May 8, 2020
1 parent ab433a9 commit f03f975
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Diagnostic/Utils/omsagent_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit f03f975

Please sign in to comment.