backup/restore: make error reporting work also for StandaloneVM based 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
This commit is contained in:
parent
1660a1cbf6
commit
c75aeb400a
@ -305,7 +305,10 @@ class RestoreInDisposableVM:
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user