Skip to content

Commit

Permalink
Merge pull request #85 from openshift-cherrypick-robot/cherry-pick-79…
Browse files Browse the repository at this point in the history
…-to-release-4.6

[release-4.6] Bug 1928073: text_collectors: do not use space as a replacement for escape characters
  • Loading branch information
openshift-merge-robot committed May 6, 2021
2 parents 56d3503 + efe7d48 commit c63b8f3
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 c63b8f3

Please sign in to comment.