Explorar o código

backup: fix handling errors in source VM

Marek Marczykowski-Górecki %!s(int64=10) %!d(string=hai) anos
pai
achega
994e963ab8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/backup.py

+ 1 - 1
core/backup.py

@@ -805,7 +805,7 @@ def restore_vm_dirs (backup_source, restore_tmpdir, passphrase, vms_dirs, vms,
         backup_target = "QUBESRPC qubes.Restore dom0"
 
         # If APPVM, STDOUT is a PIPE
-        vmproc = appvm.run(command = backup_target, passio_popen = True)
+        vmproc = appvm.run(command = backup_target, passio_popen = True, passio_stderr=True)
         vmproc.stdin.write(backup_source.replace("\r","").replace("\n","")+"\n")
 
         # Send to tar2qfile the VMs that should be extracted