fix: output error command from image import

This commit is contained in:
ronivay
2021-06-19 20:43:06 +03:00
parent 8192fbc538
commit 780d8bd280

View File

@@ -96,7 +96,7 @@ function VMImport {
echo "Downloading and importing XVA image..." echo "Downloading and importing XVA image..."
echo echo
uuid=$(curl "$IMAGE_URL" | xe vm-import filename=/dev/stdin 2>/dev/null) uuid=$(curl "$IMAGE_URL" | xe vm-import filename=/dev/stdin)
if [[ $? != "0" ]]; then if [[ $? != "0" ]]; then
echo "Import failed" echo "Import failed"