diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index 05f8392d64eb3c..cbb5a0169b2094 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -1160,6 +1160,13 @@ def build_entity(self): ) def update_check(self, entity): + res = self._update_check(entity) + if entity.next_run_configuration_exists: + res = res and self._update_check(self._service.service(entity.id).get(next_run=True)) + + return res + + def _update_check(self, entity): def check_cpu_pinning(): if self.param('cpu_pinning'): current = [] @@ -1206,7 +1213,7 @@ def check_host(): equal(self.param('smartcard_enabled'), getattr(vm_display, 'smartcard_enabled', False)) and equal(self.param('io_threads'), entity.io.threads) and equal(self.param('ballooning_enabled'), entity.memory_policy.ballooning) and - equal(self.param('serial_console'), entity.console.enabled) and + equal(self.param('serial_console'), getattr(entity.console, 'enabled', None)) and equal(self._get_minor(self.param('custom_compatibility_version')), self._get_minor(entity.custom_compatibility_version)) and equal(self._get_major(self.param('custom_compatibility_version')), self._get_major(entity.custom_compatibility_version)) and equal(self.param('usb_support'), entity.usb.enabled) and