Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Ensure LANG env is properly set when puppet runs." into stable…
Browse files Browse the repository at this point in the history
…/ussuri
  • Loading branch information
Zuul authored and openstack-gerrit committed Jan 22, 2021
2 parents 49adf0e + b3521d5 commit 8f21d26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions common/container-puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def mp_puppet_config(*args):
'NET_HOST=%s' % os.environ.get('NET_HOST', 'false'),
'--env',
'DEBUG=%s' % os.environ.get('DEBUG', 'false'),
'--env',
'LANG=%s' % os.environ.get('LANG', 'en_US.UTF-8'),
'--volume',
'/etc/localtime:/etc/localtime:ro',
'--volume',
Expand Down
16 changes: 8 additions & 8 deletions common/container-puppet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export FACTER_uuid=$(cat /sys/class/dmi/id/product_uuid | tr '[:upper:]' '[:lowe
echo 'Running puppet'
# FIXME(bogdando): stdout may be falling behind of the logged syslog messages
set -x
/usr/bin/puppet apply --summarize \
--detailed-exitcodes \
--color=false \
--modulepath=/etc/puppet/modules:/usr/share/openstack-puppet/modules \
$TAGS \
$CHECK_MODE \
/etc/config.pp \
2>&1 | logger -s -t puppet-user
env "LANG=${LANG:-en_US.UTF-8}" /usr/bin/puppet apply --summarize \
--detailed-exitcodes \
--color=false \
--modulepath=/etc/puppet/modules:/usr/share/openstack-puppet/modules \
$TAGS \
$CHECK_MODE \
/etc/config.pp \
2>&1 | logger -s -t puppet-user
rc=${PIPESTATUS[0]}
[ "$DEBUG" = "false" ] && set +x
set -e
Expand Down

0 comments on commit 8f21d26

Please sign in to comment.