ovirt: Require SDK v4.3.0 (#54385)
This commit is contained in:
parent
e8cddfd452
commit
bfc6a2a8d6
4 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ try:
|
||||||
import ovirtsdk4 as sdk
|
import ovirtsdk4 as sdk
|
||||||
import ovirtsdk4.version as sdk_version
|
import ovirtsdk4.version as sdk_version
|
||||||
import ovirtsdk4.types as otypes
|
import ovirtsdk4.types as otypes
|
||||||
HAS_SDK = LooseVersion(sdk_version.VERSION) >= LooseVersion('4.2.4')
|
HAS_SDK = LooseVersion(sdk_version.VERSION) >= LooseVersion('4.3.0')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_SDK = False
|
HAS_SDK = False
|
||||||
|
|
||||||
|
@ -51,7 +51,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.2.4 or higher is required for this module'
|
msg='ovirtsdk4 version 4.3.0 or higher is required for this module'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,14 +98,14 @@ options:
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- python >= 2.7
|
- python >= 2.7
|
||||||
- ovirt-engine-sdk-python >= 4.2.4
|
- ovirt-engine-sdk-python >= 4.3.0
|
||||||
notes:
|
notes:
|
||||||
- "Everytime you use ovirt_auth module to obtain ticket, you need to also revoke the ticket,
|
- "Everytime you use ovirt_auth module to obtain ticket, you need to also revoke the ticket,
|
||||||
when you no longer need it, otherwise the ticket would be revoked by engine when it expires.
|
when you no longer need it, otherwise the ticket would be revoked by engine when it expires.
|
||||||
For an example of how to achieve that, please take a look at I(examples) section."
|
For an example of how to achieve that, please take a look at I(examples) section."
|
||||||
- "In order to use this module you have to install oVirt/RHV Python SDK.
|
- "In order to use this module you have to install oVirt/RHV 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:
|
||||||
I(pip: name=ovirt-engine-sdk-python version=4.2.4)"
|
I(pip: name=ovirt-engine-sdk-python version=4.3.0)"
|
||||||
- "Note that in oVirt/RHV 4.1 if you want to use a user which is not administrator
|
- "Note that in oVirt/RHV 4.1 if you want to use a user which is not administrator
|
||||||
you must enable the I(ENGINE_API_FILTER_BY_DEFAULT) variable in engine. In
|
you must enable the I(ENGINE_API_FILTER_BY_DEFAULT) variable in engine. In
|
||||||
oVirt/RHV 4.2 and later it's enabled by default."
|
oVirt/RHV 4.2 and later it's enabled by default."
|
||||||
|
|
|
@ -94,9 +94,9 @@ options:
|
||||||
default: 3
|
default: 3
|
||||||
requirements:
|
requirements:
|
||||||
- python >= 2.7
|
- python >= 2.7
|
||||||
- ovirt-engine-sdk-python >= 4.2.4
|
- ovirt-engine-sdk-python >= 4.3.0
|
||||||
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:
|
||||||
I(pip: name=ovirt-engine-sdk-python version=4.2.4)"
|
I(pip: name=ovirt-engine-sdk-python version=4.3.0)"
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -48,9 +48,9 @@ options:
|
||||||
required: true
|
required: true
|
||||||
requirements:
|
requirements:
|
||||||
- python >= 2.7
|
- python >= 2.7
|
||||||
- ovirt-engine-sdk-python >= 4.2.4
|
- ovirt-engine-sdk-python >= 4.3.0
|
||||||
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:
|
||||||
pip: name=ovirt-engine-sdk-python version=4.2.4"
|
pip: name=ovirt-engine-sdk-python version=4.3.0"
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue