Merge "add optional step for wipe orpaned ceph's partitions" into release/proposed/2019.2.0
diff --git a/ceph-remove-osd.groovy b/ceph-remove-osd.groovy
index 7b00aa5..405d478 100644
--- a/ceph-remove-osd.groovy
+++ b/ceph-remove-osd.groovy
@@ -69,15 +69,11 @@
}
}
- if ( osd_ids == [] )
- {
- currentBuild.result = 'SUCCESS'
- return
- }
-
// `ceph osd out <id> <id>`
stage('Set OSDs out') {
- salt.cmdRun(pepperEnv, ADMIN_HOST, 'ceph osd out ' + osd_ids.join(' '))
+ if ( !osd_ids.isEmpty() ) {
+ salt.cmdRun(pepperEnv, ADMIN_HOST, 'ceph osd out ' + osd_ids.join(' '))
+ }
}
// wait for healthy cluster