[backport stable-5] replace ansible.module_utils.six imports with Python 3 stdlib, add ignores (#287)

* Replace ansible.module_utils.six imports with Python 3 stdlib and add sanity ignore files for ansible-core 2.20/2.21

* Add changelog fragment
This commit is contained in:
Chyna Sanders
2026-08-06 21:22:31 +00:00
committed by GitHub
parent 2418bceeec
commit 7b56706004
7 changed files with 16 additions and 9 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import os
import copy
from ansible.module_utils.parsing.convert_bool import boolean
from ansible.module_utils.six import iteritems
try:
import ldap
@@ -46,7 +45,7 @@ def validate_ldap_sync_config(config):
return "could not read ca file: {0}.".format(ca_file)
nameMapping = config.get("groupUIDNameMapping", {})
for k, v in iteritems(nameMapping):
for k, v in nameMapping.items():
if len(k) == 0 or len(v) == 0:
return "groupUIDNameMapping has empty key or value"