diff --git a/changelogs/fragments/712-ovirt_quota-fix-storage-size-typecast.yml b/changelogs/fragments/712-ovirt_quota-fix-storage-size-typecast.yml new file mode 100644 index 00000000..b9f24adc --- /dev/null +++ b/changelogs/fragments/712-ovirt_quota-fix-storage-size-typecast.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - ovirt_quota - Convert storage size to integer (https://github.com/oVirt/ovirt-ansible-collection/pull/712) diff --git a/plugins/modules/ovirt_quota.py b/plugins/modules/ovirt_quota.py index e099e757..49eb54ae 100644 --- a/plugins/modules/ovirt_quota.py +++ b/plugins/modules/ovirt_quota.py @@ -309,7 +309,7 @@ def main(): for storage in module.params.get('storages'): sd_limit_service.add( limit=otypes.QuotaStorageLimit( - limit=storage.get('size'), + limit=int(storage.get('size')), storage_domain=search_by_name( connection.system_service().storage_domains_service(), storage.get('name')