Skip to content

Commit

Permalink
Fixed linebreak in labels section of Linux agent
Browse files Browse the repository at this point in the history
Change-Id: I7a00fd27dac506513719fa6f5b150cf9f2a18a49
  • Loading branch information
makanakoeln committed Sep 18, 2020
1 parent 95329fb commit 185f334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents/check_mk_agent.linux
Expand Up @@ -146,11 +146,11 @@ section_labels() {
fi

if [ -n "$DEVICE_TYPE" ]; then
LABELS+="\n{\"cmk/device_type\":\"$DEVICE_TYPE\"}"
LABELS+="{\"cmk/device_type\":\"$DEVICE_TYPE\"}\n"
fi

if inpath omd; then
LABELS+="\n{\"cmk/check_mk_server\":\"yes\"}"
LABELS+="{\"cmk/check_mk_server\":\"yes\"}"
fi

if [ -n "$LABELS" ]; then
Expand Down

0 comments on commit 185f334

Please sign in to comment.