Skip to content
Snippets Groups Projects
Verified Commit 3a431006 authored by Christian Heusel's avatar Christian Heusel :rocket:
Browse files

gitlab_runner: fix error about unbound variable


When there was an error i.e. with the image verification the loopdev
variable was unbound in the cleanup function. We fix this by defining
the variable as empty.

Signed-off-by: default avatarChristian Heusel <christian@heusel.eu>
parent fb4d54ce
No related branches found
No related tags found
1 merge request!799gitlab_runner: fix image update for sequoia 0.33.0
Pipeline #91618 failed
...@@ -4,6 +4,8 @@ readonly libvirt_default_pool_path="/var/lib/libvirt/images" ...@@ -4,6 +4,8 @@ readonly libvirt_default_pool_path="/var/lib/libvirt/images"
readonly arch_boxes_signing_key=/usr/local/lib/libvirt-executor/arch-boxes.asc readonly arch_boxes_signing_key=/usr/local/lib/libvirt-executor/arch-boxes.asc
readonly arch_boxes_fingerprint=1B9A16984A4E8CB448712D2AE0B78BF4326C6F8F readonly arch_boxes_fingerprint=1B9A16984A4E8CB448712D2AE0B78BF4326C6F8F
loopdev=""
cleanup() { cleanup() {
set +o errexit set +o errexit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment