0578323e73
resolves: RHEL-70538
26 lines
897 B
Diff
26 lines
897 B
Diff
From c38b6503fb7d2c39d6053b61cbe1a8cf0d85dcb1 Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Sat, 7 Dec 2024 11:13:09 +0000
|
|
Subject: [PATCH] v2v: Ensure --parallel >= 1
|
|
|
|
Fixes: commit fd1148f79581b148525eb12154aef7603ccf0baa
|
|
(cherry picked from commit 755ce5dc08929ef4ef9dc0b0290d380574cb1235)
|
|
(cherry picked from commit b242c331e0e3a3d04369aaefe7e910c978491368)
|
|
---
|
|
v2v/v2v.ml | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
|
|
index b7dbce3a..b8430997 100644
|
|
--- a/v2v/v2v.ml
|
|
+++ b/v2v/v2v.ml
|
|
@@ -350,6 +350,8 @@ read the man page virt-v2v(1).
|
|
let output_mode = !output_mode in
|
|
let output_name = !output_name in
|
|
let parallel = !parallel in
|
|
+ if parallel < 1 then
|
|
+ error (f_"--parallel parameter must be >= 1");
|
|
let print_source = !print_source in
|
|
let root_choice = !root_choice in
|
|
let static_ips = !static_ips in
|