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 e558ec19cd)
This commit is contained in:
Brian Coca 2017-05-24 14:31:38 -04:00 committed by James Cammarata
parent f9d781bcab
commit 20008be317

View file

@ -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()