Commit 7ee2a43d authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Change the format of the "exclude task" properties

New format: EXCLUDE_TASK_<task_name>
parent 54c9b524
......@@ -151,13 +151,12 @@ cleanup() {
fi
}
check_if_excluded() {
test "$PROGNAME" = "snf-image-helper" && return 0
eval local do_exclude=\$SNF_IMAGE_PROPERTY_EXCLUDE_${PROGNAME:2}_TASK
if [ -n "$do_exclude" ]; then
local exclude=SNF_IMAGE_PROPERTY_EXCLUDE_TASK_${PROGNAME:2}
if [ -n "${!exclude}" ]; then
warn "Task $PROGNAME was excluded and will not run."
exit 0
fi
......
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