From dcd1c40e669cbe711cd82fb3249c04eb35b3d115 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Wed, 7 Feb 2018 17:49:25 +0100 Subject: [PATCH] ovirt: Require Python SDK 4.2.4 for Ansible 2.5 (#35841) --- lib/ansible/module_utils/ovirt.py | 4 ++-- lib/ansible/utils/module_docs_fragments/ovirt.py | 2 +- lib/ansible/utils/module_docs_fragments/ovirt_facts.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/ovirt.py b/lib/ansible/module_utils/ovirt.py index 20ad13da501..8b9167d1f56 100644 --- a/lib/ansible/module_utils/ovirt.py +++ b/lib/ansible/module_utils/ovirt.py @@ -31,7 +31,7 @@ try: from enum import Enum # enum is a ovirtsdk4 requirement import ovirtsdk4 as sdk import ovirtsdk4.version as sdk_version - HAS_SDK = LooseVersion(sdk_version.VERSION) >= LooseVersion('4.0.0') + HAS_SDK = LooseVersion(sdk_version.VERSION) >= LooseVersion('4.2.4') except ImportError: HAS_SDK = False @@ -48,7 +48,7 @@ BYTES_MAP = { def check_sdk(module): if not HAS_SDK: module.fail_json( - msg='ovirtsdk4 version 4.0.0 or higher is required for this module' + msg='ovirtsdk4 version 4.2.4 or higher is required for this module' ) diff --git a/lib/ansible/utils/module_docs_fragments/ovirt.py b/lib/ansible/utils/module_docs_fragments/ovirt.py index b9e9b6c91f9..ab271de219f 100644 --- a/lib/ansible/utils/module_docs_fragments/ovirt.py +++ b/lib/ansible/utils/module_docs_fragments/ovirt.py @@ -68,7 +68,7 @@ options: default: 3 requirements: - python >= 2.7 - - ovirt-engine-sdk-python >= 4.0.0 + - ovirt-engine-sdk-python >= 4.2.4 notes: - "In order to use this module you have to install oVirt Python SDK. To ensure it's installed with correct version you can create the following task: diff --git a/lib/ansible/utils/module_docs_fragments/ovirt_facts.py b/lib/ansible/utils/module_docs_fragments/ovirt_facts.py index 6ce3ae9e15f..302e8d803e1 100644 --- a/lib/ansible/utils/module_docs_fragments/ovirt_facts.py +++ b/lib/ansible/utils/module_docs_fragments/ovirt_facts.py @@ -56,7 +56,7 @@ options: - "C(headers) - Dictionary of HTTP headers to be added to each API call." requirements: - python >= 2.7 - - ovirt-engine-sdk-python >= 4.0.0 + - ovirt-engine-sdk-python >= 4.2.4 notes: - "In order to use this module you have to install oVirt Python SDK. To ensure it's installed with correct version you can create the following task: