summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kutz <101085+akutz@users.noreply.github.com>2021-08-13 14:30:55 -0500
committerGitHub <noreply@github.com>2021-08-13 14:30:55 -0500
commitf516a7d37c1654addc02485e681b4358d7e7c0db (patch)
tree16b7cd40fa12506e2dc1bfb4460c29b4b8c4deeb
parent04047438d7bbca0367f1b0722c0959fd92166e3e (diff)
downloadcloud-init-git-f516a7d37c1654addc02485e681b4358d7e7c0db.tar.gz
Revert unnecesary lcase in ds-identify (#978)
This patch reverts an unnecessary lcase optimization in the ds-identify script. SystemD documents the values produced by the systemd-detect-virt command are lower case, and the mapping table used by the FreeBSD check is also lower-case. The optimization added two new forked processes, needlessly causing overhead.
-rwxr-xr-xtools/ds-identify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index 537468fe..f509f566 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -449,7 +449,7 @@ detect_virt() {
read_virt() {
cached "$DI_VIRT" && return 0
detect_virt
- DI_VIRT="$(echo "${_RET}" | tr '[:upper:]' '[:lower:]')"
+ DI_VIRT="${_RET}"
}
is_container() {