Commit 4f7c2aeb authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Check if the img_properties are decoded correct

In image helper, check if returned 0 and log
the error if this is not the case.
parent 0c541fe8
......@@ -64,8 +64,12 @@ fi
if [ -n "$SNF_IMAGE_PROPERTIES" ]; then
properties=$(mktemp --tmpdir properties.XXXXXX)
add_cleanup rm "$properties"
"@scriptsdir@/" "$properties"
if ! echo "$SNF_IMAGE_PROPERTIES" | \
"@scriptsdir@/" "$properties"; then
log_error "Unable to decode image properties. " \
"Please check if the variable is in valid json format."
source "$properties"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment