Skip to content

Commit

Permalink
Merge pull request #79 from paulfantom/bz1917683
Browse files Browse the repository at this point in the history
Bug 1917683: text_collectors: do not use space as a replacement for escape characters
  • Loading branch information
openshift-merge-robot committed Jan 22, 2021
2 parents 2ca250d + 8f7995d commit 76974e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_collectors/virt.sh
Expand Up @@ -55,7 +55,7 @@ then
"$( dmidecode -s system-manufacturer )" "$( dmidecode -s system-product-name )" "$( dmidecode -s system-version )" \
"$( dmidecode -s baseboard-manufacturer )" "$( dmidecode -s baseboard-product-name )" )"
# Remove all escape characters as they are incorrect (as per https://github.com/prometheus/common/blob/master/expfmt/text_parse.go#L566-L571)
echo "${line//\\/ }" >>"${v}"
echo "${line//\\/}" >>"${v}"
fi
fi
mv "${v}" virt.prom

0 comments on commit 76974e2

Please sign in to comment.