Merge remote-tracking branch 'origin/pr/306'

* origin/pr/306:
  Don't pass stdin to VMs unless necessary.
This commit is contained in:
Marek Marczykowski-Górecki 2020-01-16 04:06:38 +01:00
commit f36c902712
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -15,7 +15,7 @@ def is_program_installed_in_qube( program, qube_name ):
try:
command = 'command -v ' + program
subprocess.check_call([ 'qvm-run', qube_name, '--pass-io', '--no-color-output', command ], stdout = open( os.devnull, 'w' ) )
subprocess.check_call([ 'qvm-run', '--no-color-output', qube_name, command ], stdout = open( os.devnull, 'w' ) )
except subprocess.CalledProcessError:
is_installed = False