Move Proxmox HAS_PROXMOXER check into module_utils. (#4030)

* Move Proxmox `HAS_PROXMOXER` check into `module_utils`.

* Fix tests.

* Fix typo.

* Update changelog entry.
This commit is contained in:
Markus Reiter 2022-01-16 20:13:47 +01:00 committed by GitHub
commit 761fbe4fa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 24 deletions

View file

@ -197,7 +197,7 @@ def main():
)
if not HAS_PROXMOXER:
module.fail_json(msg=missing_required_lib('python-proxmoxer'),
module.fail_json(msg=missing_required_lib('proxmoxer'),
exception=PROXMOXER_IMP_ERR)
state = module.params['state']