Removed condition for short path in order to allow re-run the pipeline
Related-Prod: PROD-35173
Change-Id: Ib5a8af54fb5223e798cc50e8891a620718b465e1
diff --git a/ceph-remove-osd.groovy b/ceph-remove-osd.groovy
index 0a9d4cc..b39434b 100644
--- a/ceph-remove-osd.groovy
+++ b/ceph-remove-osd.groovy
@@ -66,15 +66,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