mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add a more explicit error message, fix #1282
This commit is contained in:
parent
28baed011d
commit
4e4085ad7e
1 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ options:
|
||||||
default: 0
|
default: 0
|
||||||
notes:
|
notes:
|
||||||
- Not tested on any Debian based system.
|
- Not tested on any Debian based system.
|
||||||
|
- Requires the python2 bindings of firewalld, who may not be installed by default if the distribution switched to python 3
|
||||||
requirements: [ 'firewalld >= 0.2.11' ]
|
requirements: [ 'firewalld >= 0.2.11' ]
|
||||||
author: "Adam Miller (@maxamillion)"
|
author: "Adam Miller (@maxamillion)"
|
||||||
'''
|
'''
|
||||||
|
@ -247,7 +248,7 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
if not HAS_FIREWALLD:
|
if not HAS_FIREWALLD:
|
||||||
module.fail_json(msg='firewalld required for this module')
|
module.fail_json(msg='firewalld and its python 2 module are required for this module')
|
||||||
|
|
||||||
## Pre-run version checking
|
## Pre-run version checking
|
||||||
if FW_VERSION < "0.2.11":
|
if FW_VERSION < "0.2.11":
|
||||||
|
|
Loading…
Reference in a new issue