From e452ec514ea821f517ee733c7769056bf552adfc Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Sat, 28 May 2016 13:19:51 -0700 Subject: [PATCH] Ignore cdroms in disks grain --- salt/grains/disks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/grains/disks.py b/salt/grains/disks.py index c1c386c742..dbf7e88352 100644 --- a/salt/grains/disks.py +++ b/salt/grains/disks.py @@ -106,6 +106,8 @@ def _freebsd_geom(): tmp[_geomconsts._aliases[attrib]] = value name = tmp.pop(_geomconsts.GEOMNAME) + if name.startswith('cd'): + return ret['disks'][name] = tmp if tmp[_geomconsts.ROTATIONRATE] == 0: