Skip to content

Commit e19126d

Browse files
committed
wrapper: set stdin for virt-v2v to /dev/null
We don't plan to steer virt-v2v workflow by providing input on stdin and answering questions. Hence there is no reason to keep stdin attached. In fact, redirecting it to /dev/null can avoid bad "answers" when virt-v2v decides to be interactive and starts asking questions. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
1 parent 4886b2e commit e19126d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/virt-v2v-wrapper.py

+1
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def wrapper(data, state_file, v2v_log, agent_sock=None):
396396
v2v_args, env)
397397
proc = subprocess.Popen(
398398
v2v_args,
399+
stdin=subprocess.DEVNULL,
399400
stderr=subprocess.STDOUT,
400401
stdout=log,
401402
env=env,

0 commit comments

Comments
 (0)