Merge pull request #73 from miabbott/check_run_label
diff --git a/rhcos-toolbox b/rhcos-toolbox
index b1e75cb..86de840 100755
--- a/rhcos-toolbox
+++ b/rhcos-toolbox
@@ -68,9 +68,10 @@
}
image_runlabel() {
- sudo podman image inspect "$TOOLBOX_IMAGE" --format "{{.Labels.run}}"
+ sudo podman image inspect "$TOOLBOX_IMAGE" --format '{{- if index .Labels "run" -}}{{.Labels.run}}{{- end -}}'
}
+
image_pull() {
if ! sudo --preserve-env podman pull --authfile /var/lib/kubelet/config.json "$TOOLBOX_IMAGE"; then
read -r -p "Would you like to manually authenticate to registry: '${REGISTRY}' and try again? [y/N] "