Skip to content
Browse files

[debops.ansible_plugins] Fix Py3 support in module

The 'ldap_attrs' Ansible module should now work correctly on Python
3 environment.

Ref: ansible/ansible#39569
  • Loading branch information...
drybjed committed Aug 12, 2019
1 parent 21ca1dc commit cc4e8889aaaf64b5a9acfa0b46d086b20a2c7e09
Showing with 3 additions and 3 deletions.
  1. +3 −3 ansible/roles/debops.ansible_plugins/library/
@@ -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)))
norm_values = list(map(str, values))
norm_values = list(map(to_bytes, values))
elif values != "":
norm_values = [str(values)]

0 comments on commit cc4e888

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