ovirt: Require Python SDK 4.2.4 for Ansible 2.5 (#35841)
This commit is contained in:
parent
7d4a2de66a
commit
dcd1c40e66
3 changed files with 4 additions and 4 deletions
|
@ -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'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue