Ignore the first element of kern.disks split, which is the sysctl name

This commit is contained in:
Kevin Bowling 2015-08-27 02:02:44 -07:00
parent 4040a312f9
commit 3ac97f9de4

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: