mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #21994 from twangboy/os_ver_15051
Used WMI to detect real osversion in Windows
This commit is contained in:
commit
c76ea26943
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user