Skip to content

Commit

Permalink
Exit when virt-v2v cold hit an error
Browse files Browse the repository at this point in the history
Since we now support two flows in the virt-v2v image, it doesn't end
with the actual `virt-v2v` command. In that case the pod may end with
success although, it didn't. Now the script will exit with an error on
the first error occurrence.

Signed-off-by: Liran Rotenberg <[email protected]>
  • Loading branch information
liranr23 authored and ahadas committed Aug 6, 2023
1 parent cfcc648 commit 32195a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virt-v2v/cold/entrypoint
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -o pipefail
set -o pipefail -e
shopt -s nullglob

if [ -z "$V2V_source"] ; then
Expand Down Expand Up @@ -105,4 +105,4 @@ if [ "$V2V_source" == "ova" ] ; then
-i ova "$V2V_diskPath" \
"${args[@]}"\
|& /usr/local/bin/virt-v2v-monitor
fi
fi

0 comments on commit 32195a5

Please sign in to comment.