From e558ec19cd1fd9d00e299cf1938d4ca3cec85cda Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 24 May 2017 14:31:38 -0400 Subject: [PATCH] Solaris fact fix (#24793) * ensure locale for solaris fact gathering fixes issue with locale interfering with proper reading of decimals fixes #24542 * fixed typoe --- lib/ansible/module_utils/facts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 662990a3f1..08d4181360 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -1618,6 +1618,7 @@ class SunOSHardware(Hardware): platform = 'SunOS' def populate(self): + self.module.run_command_environ_update = {'LANG': 'C', 'LC_ALL': 'C', 'LC_NUMERIC': 'C'} self.get_cpu_facts() self.get_memory_facts() self.get_dmi_facts()