Skip to content

Commit

Permalink
Merge pull request #997 from rjeffman/environment_fix_setting_order
Browse files Browse the repository at this point in the history
environment: Fix os.environ language setting.
  • Loading branch information
t-woerner authored Nov 30, 2022
2 parents a55b4a2 + 76aad71 commit 9de2354
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/module_utils/ansible_freeipa_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"load_pem_x509_certificate", "DNSName", "getargspec"]

import os
# ansible-freeipa requires locale to be C, IPA requires utf-8.
os.environ["LANGUAGE"] = "C"

import sys
import operator
import tempfile
Expand Down Expand Up @@ -154,9 +157,6 @@ def is_ipa_configured():
ANSIBLE_FREEIPA_MODULE_IMPORT_ERROR = None


# ansible-freeipa requires locale to be C, IPA requires utf-8.
os.environ["LANGUAGE"] = "C"

if six.PY3:
unicode = str

Expand Down

0 comments on commit 9de2354

Please sign in to comment.