commit | f04588fcef7037f4e69322918082f9fd4babc793 | [log] [tgz] |
---|---|---|
author | Timothée Ravier <travier@redhat.com> | Mon Feb 08 18:41:12 2021 +0100 |
committer | Micah Abbott <miabbott@redhat.com> | Wed Feb 10 16:24:20 2021 -0500 |
tree | 6ca9b84114e569c42cf894468e5b6783d6c74c35 | |
parent | f61c747c84ea4ea18b853aaab5e6318b2cd74162 [diff] |
rhcos-toolbox: Ignore podman '<no value>' output for empty labels podman displays '<no value>' when a label is not set for a container image. Fixes: https://github.com/coreos/toolbox/commit/a6d2ecf4d4d7f2c5313f8c0807197f0949f6ea16 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1924020
diff --git a/rhcos-toolbox b/rhcos-toolbox index a16383b..b1e75cb 100755 --- a/rhcos-toolbox +++ b/rhcos-toolbox
@@ -26,7 +26,7 @@ local runlabel=$(image_runlabel) if ! container_exists; then echo "Spawning a container '$TOOLBOX_NAME' with image '$TOOLBOX_IMAGE'" - if [[ -z "$runlabel" ]]; then + if [[ -z "$runlabel" ]] || [[ "$runlabel" == "<no value>" ]]; then container_run return else