Skip to content

Commit

Permalink
backup/restore: make error reporting work also for StandaloneVM based…
Browse files Browse the repository at this point in the history
… DispVM

If management dispvm is based on a StandaloneVM not a AppVM, then there
is just one level of templates, not two.

QubesOS/qubes-issues#4670
  • Loading branch information
marmarek committed Aug 7, 2020
1 parent 1660a1c commit c75aeb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubesadmin/backup/dispvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ def run(self):
raise qubesadmin.exc.QubesException(
'qvm-backup-restore tool '
'missing in {} template, install qubes-core-admin-client '
'package there'.format(self.dispvm.template.template.name)
'package there'.format(
getattr(self.dispvm.template,
'template',
self.dispvm.template).name)
)
if exit_code != 0:
raise qubesadmin.exc.BackupRestoreError(
Expand Down

0 comments on commit c75aeb4

Please sign in to comment.