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
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" args += " --consumed"
else: else:
args += " --available" 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 = [] products = []
for line in stdout.split('\n'): for line in stdout.split('\n'):