Merge pull request #47837 from rares-pop/dev/iepopr/populate-productname-on-arm

Populate productname grain on ARM Linux
This commit is contained in:
Nicole Thomas 2018-05-29 10:25:12 -04:00 committed by GitHub
commit 11e73541cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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