mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #47837 from rares-pop/dev/iepopr/populate-productname-on-arm
Populate productname grain on ARM Linux
This commit is contained in:
commit
11e73541cc
@ -2250,6 +2250,7 @@ def _hw_data(osdata):
|
||||
hwdata = {
|
||||
'manufacturer': 'manufacturer',
|
||||
'serialnumber': 'serial#',
|
||||
'productname': 'DeviceDesc',
|
||||
}
|
||||
for grain_name, cmd_key in six.iteritems(hwdata):
|
||||
result = __salt__['cmd.run_all']('fw_printenv {0}'.format(cmd_key))
|
||||
|
Loading…
Reference in New Issue
Block a user