Merge pull request #21994 from twangboy/os_ver_15051

Used WMI to detect real osversion in Windows
This commit is contained in:
jfindlay 2015-03-25 11:50:22 -06:00
commit c76ea26943

View File

@ -893,8 +893,9 @@ def os_data():
# pylint: enable=unpacking-non-sequence
if salt.utils.is_windows():
wmi_c = wmi.WMI()
grains['osrelease'] = grains['kernelrelease']
grains['osversion'] = grains['kernelrelease'] = version
grains['osversion'] = grains['kernelrelease'] = wmi_c.Win32_OperatingSystem()[0].Version
grains['os'] = 'Windows'
grains['os_family'] = 'Windows'
grains.update(_memdata(grains))