diff --git a/changelogs/fragments/ovirt_vm_check_next_run_configuration_update_if_exist.yaml b/changelogs/fragments/ovirt_vm_check_next_run_configuration_update_if_exist.yaml new file mode 100644 index 00000000000..5f5dc623774 --- /dev/null +++ b/changelogs/fragments/ovirt_vm_check_next_run_configuration_update_if_exist.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ovirt_vm - Check next_run configuration update if exist (https://github.com/ansible/ansible/pull/47282/). diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index 13d38b8bd11..0b93fce7358 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -1146,6 +1146,13 @@ class VmsModule(BaseModule): ) 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 = []