remove "-n" flag from /usr/bin/awk (#1269)

This flag causes no ipmi data to be emitted and an error log is generated on each invocation: "awk: not an option: -nf".

I was unable to locate a "-n" flag in the mawk or gawk man pages, so I tested it by manually changing the script on a running Debian buster system.  The issue was resolved and metrics were emitted.

Signed-off-by: Cole White <cwhite@wikimedia.org>
This commit is contained in:
Cole White 2019-02-23 10:37:06 -07:00 committed by Ben Kochie
parent 0dc14762ef
commit 83c9b11747
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/awk -nf
#!/usr/bin/awk -f
#
# Converts output of `ipmitool sensor` to prometheus format.