redhat_subscription: C locale for stdout scraping (#40165)

This commit is contained in:
Martin Krizek 2018-05-17 20:44:06 +02:00 committed by GitHub
parent 59e541e31a
commit ca3390377a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -556,7 +556,8 @@ class RhsmPools(object):
args += " --consumed"
else:
args += " --available"
rc, stdout, stderr = self.module.run_command(args, check_rc=True)
lang_env = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C')
rc, stdout, stderr = self.module.run_command(args, check_rc=True, environ_update=lang_env)
products = []
for line in stdout.split('\n'):