diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py index 8c89955c09762d..e282c0306aadab 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py @@ -529,12 +529,13 @@ def _update_check_external_network_providers(self, entity): def update_check(self, entity): sched_policy = self._get_sched_policy() migration_policy = getattr(entity.migration, 'policy', None) + cluster_cpu = getattr(entity, 'cpu', dict()) return ( equal(self.param('comment'), entity.comment) and equal(self.param('description'), entity.description) and equal(self.param('switch_type'), str(entity.switch_type)) and - equal(self.param('cpu_arch'), str(entity.cpu.architecture)) and - equal(self.param('cpu_type'), entity.cpu.type) and + equal(self.param('cpu_arch'), str(getattr(cluster_cpu, 'architecture', None))) and + equal(self.param('cpu_type'), getattr(cluster_cpu, 'type', None)) and equal(self.param('ballooning'), entity.ballooning_enabled) and equal(self.param('gluster'), entity.gluster_service) and equal(self.param('virt'), entity.virt_service) and