Skip to content
Permalink
Browse files

Merge branch 'drybjed-fix-ldap_attrs-py3'

  • Loading branch information...
drybjed committed Aug 12, 2019
2 parents 21ca1dc + cc4e888 commit bb3fcbb7bdd1f0f31f492cdb9d69a9f493d46210
Showing with 3 additions and 3 deletions.
  1. +3 −3 ansible/roles/debops.ansible_plugins/library/ldap_attrs.py
@@ -11,7 +11,7 @@
from __future__ import absolute_import, division, print_function

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_native
from ansible.module_utils._text import to_native, to_bytes

import traceback
import re
@@ -254,9 +254,9 @@ def _normalize_values(self, values):

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

0 comments on commit bb3fcbb

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