Skip to content

Commit

Permalink
Ignore cdroms in disks grain
Browse files Browse the repository at this point in the history
  • Loading branch information
kev009 committed May 28, 2016
1 parent 8bf0290 commit e452ec5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/grains/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def parse_geom_attribs(device):
tmp[_geomconsts._aliases[attrib]] = value

name = tmp.pop(_geomconsts.GEOMNAME)
if name.startswith('cd'):
return

ret['disks'][name] = tmp
if tmp[_geomconsts.ROTATIONRATE] == 0:
Expand Down

0 comments on commit e452ec5

Please sign in to comment.