mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 16:04:09 -07:00
* Move Proxmox `HAS_PROXMOXER` check into `module_utils`.
* Fix tests.
* Fix typo.
* Update changelog entry.
(cherry picked from commit 761fbe4fa3
)
Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
parent
a477044fb7
commit
9e6df4f1c9
9 changed files with 16 additions and 24 deletions
|
@ -116,7 +116,7 @@ msg:
|
|||
|
||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||
from ansible_collections.community.general.plugins.module_utils.proxmox import (
|
||||
proxmox_auth_argument_spec, ProxmoxAnsible, HAS_PROXMOXER, PROXMOXER_IMP_ERR)
|
||||
proxmox_auth_argument_spec, ProxmoxAnsible)
|
||||
|
||||
|
||||
class ProxmoxTaskInfoAnsible(ProxmoxAnsible):
|
||||
|
@ -163,9 +163,6 @@ def main():
|
|||
supports_check_mode=True)
|
||||
result = dict(changed=False)
|
||||
|
||||
if not HAS_PROXMOXER:
|
||||
module.fail_json(msg=missing_required_lib(
|
||||
'proxmoxer'), exception=PROXMOXER_IMP_ERR)
|
||||
proxmox = ProxmoxTaskInfoAnsible(module)
|
||||
upid = module.params['task']
|
||||
node = module.params['node']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue