Skip to content

Commit

Permalink
backup/restore: distinguish dom0 by name
Browse files Browse the repository at this point in the history
Getting name of QubesVM object doesn't require Admin API call that could
be not allowed by this VM

QubesOS/qubes-issues#5310
  • Loading branch information
marmarek committed Aug 4, 2020
1 parent b7eca97 commit 2b6b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesadmin/backup/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def __init__(self, app, backup_location, backup_vm, passphrase,

#: VM from which backup should be retrieved
self.backup_vm = backup_vm
if backup_vm and backup_vm.qid == 0:
if backup_vm and backup_vm.name == 'dom0':
self.backup_vm = None

#: backup path, inside VM pointed by :py:attr:`backup_vm`
Expand Down

0 comments on commit 2b6b4e7

Please sign in to comment.