From 20008be317ba405e71df4769d5f8c979eef1f61b 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 (cherry picked from commit e558ec19cd1fd9d00e299cf1938d4ca3cec85cda) --- 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 5c4fe1a6168..375fa15e94b 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -1564,6 +1564,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()