From 136e8a1e5853cad277ad22e5c6531f3e60406780 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Thu, 17 May 2018 07:44:50 +0200 Subject: [PATCH] ovirt: fix quota_id check (#40081) --- lib/ansible/modules/cloud/ovirt/ovirt_vms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vms.py b/lib/ansible/modules/cloud/ovirt/ovirt_vms.py index 6cc40de787c..a18155336f9 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vms.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vms.py @@ -1097,7 +1097,7 @@ class VmsModule(BaseModule): equal(self.param('serial_console'), entity.console.enabled) and equal(self.param('usb_support'), entity.usb.enabled) and equal(self.param('sso'), True if entity.sso.methods else False) and - equal(self.param('quota_id'), getattr(entity.quota, 'id')) and + equal(self.param('quota_id'), getattr(entity.quota, 'id', None)) and equal(self.param('high_availability'), entity.high_availability.enabled) and equal(self.param('high_availability_priority'), entity.high_availability.priority) and equal(self.param('lease'), get_link_name(self._connection, getattr(entity.lease, 'storage_domain', None))) and