Merge pull request #33767 from amontalban/2016.3

Fix #33604 implementation when 'geom disk list' does not output rotat…
This commit is contained in:
Mike Place 2016-06-07 07:41:56 -07:00
commit 3e48b701e3

View file

@ -110,7 +110,7 @@ def _freebsd_geom():
return
ret['disks'][name] = tmp
if tmp[_geomconsts.ROTATIONRATE] == 0:
if tmp.get(_geomconsts.ROTATIONRATE) == 0:
log.trace('Device {0} reports itself as an SSD'.format(device))
ret['SSDs'].append(name)