1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ovirt: Require Python SDK 4.2.4 for Ansible 2.5 (#35841)

This commit is contained in:
Ondra Machacek 2018-02-07 17:49:25 +01:00 committed by Ryan Brown
parent 7d4a2de66a
commit dcd1c40e66
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ try:
from enum import Enum # enum is a ovirtsdk4 requirement from enum import Enum # enum is a ovirtsdk4 requirement
import ovirtsdk4 as sdk import ovirtsdk4 as sdk
import ovirtsdk4.version as sdk_version 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: except ImportError:
HAS_SDK = False HAS_SDK = False
@ -48,7 +48,7 @@ BYTES_MAP = {
def check_sdk(module): def check_sdk(module):
if not HAS_SDK: if not HAS_SDK:
module.fail_json( 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'
) )

View file

@ -68,7 +68,7 @@ options:
default: 3 default: 3
requirements: requirements:
- python >= 2.7 - python >= 2.7
- ovirt-engine-sdk-python >= 4.0.0 - ovirt-engine-sdk-python >= 4.2.4
notes: notes:
- "In order to use this module you have to install oVirt Python SDK. - "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: To ensure it's installed with correct version you can create the following task:

View file

@ -56,7 +56,7 @@ options:
- "C(headers) - Dictionary of HTTP headers to be added to each API call." - "C(headers) - Dictionary of HTTP headers to be added to each API call."
requirements: requirements:
- python >= 2.7 - python >= 2.7
- ovirt-engine-sdk-python >= 4.0.0 - ovirt-engine-sdk-python >= 4.2.4
notes: notes:
- "In order to use this module you have to install oVirt Python SDK. - "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: To ensure it's installed with correct version you can create the following task: