Skip to content

Commit

Permalink
Merge pull request #373 from bcoca/patch-1
Browse files Browse the repository at this point in the history
More complete missing lib msg

adds 'exact' python used by module  and hostname to avoid confusion
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

firewalld

Reviewed-by: Hideki Saito <saito@fgrep.org>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Sep 16, 2022
2 parents 5e0a659 + cc20dea commit 0224e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- firewall - Fixed to output a more complete missing library message.
4 changes: 2 additions & 2 deletions plugins/module_utils/firewalld.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from __future__ import absolute_import, division, print_function
from ansible_collections.ansible.posix.plugins.module_utils.version import LooseVersion
from ansible.module_utils.basic import missing_required_lib

__metaclass__ = type

Expand Down Expand Up @@ -314,6 +315,5 @@ def sanity_check(module):

if import_failure:
module.fail_json(
msg='Python Module not found: firewalld and its python module are required for this module, \
version 0.2.11 or newer required (0.3.9 or newer for offline operations)'
msg=missing_required_lib('firewall') + '. Version 0.2.11 or newer required (0.3.9 or newer for offline operations)'
)

0 comments on commit 0224e4d

Please sign in to comment.