redhat_subscription: C locale for stdout scraping (#40165)

pull/4420/head
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
1 changed files with 2 additions and 1 deletions

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'):