Skip to content

Commit

Permalink
[module_base] style
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Mar 25, 2024
1 parent c05bac2 commit cb1da14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/module_utils/module_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def __init__(self, module, pfsense=None, package=None, name=None, root=None, roo
if package is not None:
self.root_elt = self.pfsense.get_element(root, root_elt=self.pfsense.root.find('installedpackages'))
if self.root_elt is None:
self.module.fail_json(msg='Unable to find configuration for the package {package}. Are you sure that it is installed?'.format(package=package))
self.module.fail_json(
msg='Unable to find configuration for the package {package}. Are you sure that it is installed?'.format(package=package))
else:
root_elt = self.pfsense.root
for this in root.split('/'):
Expand Down

0 comments on commit cb1da14

Please sign in to comment.