diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2020-08-11 16:27:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 16:27:11 +0300 |
commit | b0bfec14e2e1583077beead3827d29444cf05fd0 (patch) | |
tree | 95769dd7a4c80ce6eb8fc5733ff4587eb0451056 /daemon | |
parent | 56bc902bc6e08d191be8ec8a2c7833f322773610 (diff) |
Fix crash when receiving malformed labels via streaming. (#9715)
* Fix crash when receiving malformed labels via streaming.
* Disallow empty _virtualization values in system_info.
Diffstat (limited to 'daemon')
-rwxr-xr-x | daemon/system-info.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh index 0cd24fc4f5..dcdc099688 100755 --- a/daemon/system-info.sh +++ b/daemon/system-info.sh @@ -30,6 +30,10 @@ if [ -z "${VIRTUALIZATION}" ]; then VIRTUALIZATION="none" fi fi + if [ -z "${VIRTUALIZATION}" ]; then + # Output from the command is outside of spec + VIRTUALIZATION="unknown" + fi else # Passed from outside - probably in docker run VIRT_DETECTION="provided" |