Merge pull request #26700 from kev009/fbsd-disks-fix-2015.5

Ignore the first element of kern.disks split, which is the sysctl name
This commit is contained in:
Justin Findlay 2015-08-27 11:48:02 -06:00
commit 24a4f54f39

View file

@ -50,7 +50,7 @@ def _freebsd_ssds():
camcontrol = salt.utils.which('camcontrol')
devices = __salt__['cmd.run']('{0} kern.disks'.format(sysctl))
for device in devices.split(' '):
for device in devices.split(' ')[1:]:
identify = __salt__['cmd.run']('{0} identify {1}'.format(camcontrol,
device))
if SSD_TOKEN in identify: