add print of grains
Change-Id: I0358ef2f7b7ed16b472563b27801eb21124c474e
diff --git a/ceph-enforce-weights.groovy b/ceph-enforce-weights.groovy
index 4e418d7..284bcf8 100644
--- a/ceph-enforce-weights.groovy
+++ b/ceph-enforce-weights.groovy
@@ -20,6 +20,8 @@
return salt.cmdRun(master, ADMIN_HOST, cmd)
}
+def grains
+
node("python") {
stage('Load cluster information') {
@@ -27,8 +29,8 @@
saltMaster = salt.connection(SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
// get list of disk from grains
- def grains = salt.getGrain(saltMaster, 'I@ceph:osd')['return'][0]
-
+ grains = salt.getGrain(saltMaster, 'I@ceph:osd')['return'][0]
+ common.prettyPring(grains)
}