api/internal: make GetSystemInfo not crash on not set default DispVM

This commit is contained in:
Marek Marczykowski-Górecki 2017-05-30 21:32:01 +02:00
parent b5a4573290
commit b08574acf3
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -51,7 +51,7 @@ class QubesInternalAPI(qubes.api.AbstractQubesAPI):
'type': domain.__class__.__name__,
'dispvm_allowed': getattr(domain, 'dispvm_allowed', False),
'default_dispvm': (str(domain.default_dispvm) if
domain.default_dispvm else None),
getattr(domain, 'default_dispvm', None) else None),
'icon': str(domain.label.icon),
} for domain in self.app.domains
}}