Merge pull request #1225 from rjeffman/ci_pin_ansible_lint_version

Bump linter tools versions an fix linter errors
This commit is contained in:
Thomas Woerner
2024-05-27 14:33:52 +02:00
committed by GitHub
17 changed files with 74 additions and 55 deletions

View File

@@ -499,7 +499,10 @@ def module_params_get(module, name, allow_empty_list_item=False):
# Ansible issue https://github.com/ansible/ansible/issues/77108
if isinstance(value, list):
for val in value:
if isinstance(val, (str, unicode)) and not val:
if (
isinstance(val, (str, unicode)) # pylint: disable=W0012,E0606
and not val
):
if not allow_empty_list_item:
module.fail_json(
msg="Parameter '%s' contains an empty string" %