Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/411'
Browse files Browse the repository at this point in the history
* origin/pr/411:
  Use getattr() to access Qubes properties
  • Loading branch information
marmarek committed Jun 18, 2021
2 parents aee5ef9 + e4016a1 commit 9d1809a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/vm/dispvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def from_appvm(cls, appvm, **kwargs):
This method modifies :file:`qubes.xml` file.
The qube returned is not started.
'''
if not appvm.template_for_dispvms:
if not getattr(appvm, 'template_for_dispvms', False):
raise qubes.exc.QubesException(
'Refusing to create DispVM out of this AppVM, because '
'template_for_dispvms=False')
Expand Down

0 comments on commit 9d1809a

Please sign in to comment.