mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #9952 from dmyerscough/develop
Notify the user if dmidecode could not be located
This commit is contained in:
commit
5e5cd6350c
@ -1219,6 +1219,10 @@ def _dmidecode_data(regex_dict):
|
|||||||
elif salt.utils.which('smbios'):
|
elif salt.utils.which('smbios'):
|
||||||
out = __salt__['cmd.run']('smbios')
|
out = __salt__['cmd.run']('smbios')
|
||||||
else:
|
else:
|
||||||
|
log.info(
|
||||||
|
'The `dmidecode` binary is not available on the system. GPU grains '
|
||||||
|
'will not be available.'
|
||||||
|
)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
for section in regex_dict:
|
for section in regex_dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user