Skip to content

Commit c4251de

Browse files
Update plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/util/ScaleIOUtil.java
Co-authored-by: Suresh Kumar Anaparti <[email protected]>
1 parent aa982eb commit c4251de

File tree

1 file changed

+3
-1
lines changed
  • plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/util

1 file changed

+3
-1
lines changed

plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/util/ScaleIOUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ public static boolean removeMdms(String... mdmAddresses) {
214214
// remove MDM via CLI if it is supported
215215
if (removeMdmCliSupported) {
216216
removeMdm(mdmAddress);
217-
changesApplied = true;
217+
if (removeMdm(mdmAddress)) {
218+
changesApplied = true;
219+
}
218220
} else {
219221
String command = String.format(REMOVE_MDM_CMD_TEMPLATE, mdmAddress, DRV_CFG_FILE);
220222
Script.runSimpleBashScript(command);

0 commit comments

Comments
 (0)