diff --git a/roles/copr/backend/templates/resalloc/vm-delete.j2 b/roles/copr/backend/templates/resalloc/vm-delete.j2 index 3ac7a8d5f1..81cc7be442 100755 --- a/roles/copr/backend/templates/resalloc/vm-delete.j2 +++ b/roles/copr/backend/templates/resalloc/vm-delete.j2 @@ -2,6 +2,8 @@ die(){ echo >&2 "!! $*"; exit 1; } +set -x + test -z "$RESALLOC_NAME" && die "no vm specified, empty \$RESALLOC_NAME variable" # Detect the IP we should be talking to. @@ -31,6 +33,7 @@ case $RESALLOC_POOL_ID in ;; copr_osuosl_*) # Delegate the rest of this task to an OpenStack specific script. + set +x . "{{ provision_directory }}/.rc-osuosl.sh" exec resalloc-openstack-delete --delete-everything "$RESALLOC_NAME" exit 1