mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
imc_rest: fail when requirement is missing (#33750)
This commit is contained in:
parent
02e965ba20
commit
492d777ad7
1 changed files with 6 additions and 0 deletions
|
@ -333,6 +333,12 @@ def main():
|
|||
mutually_exclusive=[['content', 'path']],
|
||||
)
|
||||
|
||||
if not HAS_LXML_ETREE:
|
||||
module.fail_json(msg='module requires the lxml Python library installed on the managed host')
|
||||
|
||||
if not HAS_XMLJSON_COBRA:
|
||||
module.fail_json(msg='module requires the xmljson (>= 0.1.8) Python library installed on the managed host')
|
||||
|
||||
hostname = module.params['hostname']
|
||||
username = module.params['username']
|
||||
password = module.params['password']
|
||||
|
|
Loading…
Reference in a new issue