diff --git a/changelogs/fragments/516-remove-distutils-usage.yml b/changelogs/fragments/516-remove-distutils-usage.yml new file mode 100644 index 000000000..f0cc0bfae --- /dev/null +++ b/changelogs/fragments/516-remove-distutils-usage.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - ovirt - Remove deprecated distutils (https://github.com/oVirt/ovirt-ansible-collection/pull/516). diff --git a/plugins/module_utils/ovirt.py b/plugins/module_utils/ovirt.py index 03b75dba3..266cc8445 100644 --- a/plugins/module_utils/ovirt.py +++ b/plugins/module_utils/ovirt.py @@ -27,7 +27,7 @@ from abc import ABCMeta, abstractmethod from datetime import datetime -from distutils.version import LooseVersion +from packaging.version import parse as LooseVersion from ansible_collections.@NAMESPACE@.@NAME@.plugins.module_utils.cloud import CloudRetry from ansible.module_utils.basic import env_fallback