mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
24a4f54f39
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue