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

pull/35848/head
Ondra Machacek 7 years ago committed by Ryan Brown
parent 7d4a2de66a
commit dcd1c40e66

@ -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'
) )

@ -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:

@ -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:

Loading…
Cancel
Save