Fix setting include_in_balancing checkbox

Generally vm.features values are strings, need to cast them to boot to
use in such context.
Additionally fix typo in feature name ('services' -> 'service').

Fixes QubesOS/qubes-issues#2947
Fixes QubesOS/qubes-issues#3104
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-16 03:10:47 +02:00
parent 9ebd602407
commit 43576d786c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -452,7 +452,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
self.include_in_balancing.setEnabled(True)
self.include_in_balancing.setChecked(
self.vm.features.get('services.meminfo-writer', True))
bool(self.vm.features.get('service.meminfo-writer', True)))
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
#in case VM is HVM