Skip to content
Permalink
Browse files

[debops.ansible_plugins] Correct Py3 support fix

This time the code was tested with the 'debops.slapd' role which
actually uses the "X-ORDERED" functionality implemented here. This
should work as expected.
  • Loading branch information...
drybjed committed Aug 12, 2019
1 parent fc694cc commit 9fac42a02fed374c259ef86c860d71a8983defa7
Showing with 3 additions and 2 deletions.
  1. +3 −2 ansible/roles/debops.ansible_plugins/library/ldap_attrs.py
@@ -254,11 +254,12 @@ def _normalize_values(self, values):

if isinstance(values, list):
if self.ordered:
norm_values = self._order_values(list(map(to_bytes, values)))
norm_values = list(map(to_bytes,
self._order_values(list(map(str, values)))))
else:
norm_values = list(map(to_bytes, values))
elif values != "":
norm_values = [str(values)]
norm_values = [to_bytes(str(values))]

return norm_values

0 comments on commit 9fac42a

Please sign in to comment.
You can’t perform that action at this time.