Fix #33604 implementation when 'geom disk list' does not output rotationrate. #33578

This commit is contained in:
Andres Montalban 2016-06-05 19:26:36 -03:00
parent a8d9221631
commit b8c0dd5b4c

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)