remove break statement
Change-Id: I6074eeeddcfb2f68eccdd1e0646a0acb7c94b8fc
diff --git a/ceph-add-node.groovy b/ceph-add-node.groovy
index 9da7110..b233050 100644
--- a/ceph-add-node.groovy
+++ b/ceph-add-node.groovy
@@ -31,8 +31,8 @@
}
if (!found) {
- common.errorMsg("No such HOST_TYPE was found. Please insert one of the following types: mon/osd/rgw")
- break
+ common.errorMsg("No such HOST_TYPE was found. Please insert one of the following types: mon/osd/rgw")
+ throw new InterruptedException()
}
if (HOST_TYPE.toLowerCase() != 'osd') {