update grain name for ceph OSDs
Related-Prod: PROD-35230
Change-Id: Idbd3114d0d6e1d802a2a925dbc5a83136fd2a5f4
diff --git a/ceph-remove-node.groovy b/ceph-remove-node.groovy
index 39ed07e..55e9d6e 100644
--- a/ceph-remove-node.groovy
+++ b/ceph-remove-node.groovy
@@ -75,7 +75,7 @@
}
} else if (HOST_TYPE.toLowerCase() == 'osd') {
def osd_ids = []
- def device_grain_name = salt.getPillar(pepperEnv,"I@ceph:osd","ceph:osd:lvm_enabled")['return'].first().containsValue(true) ? "ceph_volume" : "ceph_disk"
+ def device_grain_name = "ceph_disk"
// get list of osd disks of the host
salt.runSaltProcessStep(pepperEnv, HOST, 'saltutil.sync_grains', [], null, true, 5)
def ceph_disks = salt.getGrain(pepperEnv, HOST, 'ceph')['return'][0].values()[0].values()[0][device_grain_name]