Skip to content

Instantly share code, notes, and snippets.

@mpenick
Created January 26, 2016 22:34
Show Gist options
  • Select an option

  • Save mpenick/a992e2c2135e5f1a20b1 to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/a992e2c2135e5f1a20b1 to your computer and use it in GitHub Desktop.
diff --git a/support/ccm.php b/support/ccm.php
index 8f5f5d3..4ce9433 100644
--- a/support/ccm.php
+++ b/support/ccm.php
@@ -289,7 +289,7 @@ class CCM
$clusters = $this->getClusters();
foreach ($clusters['list'] as $cluster) {
// Determine if the cluster should be deleted
- if (!$is_all && substr(strtolower($cluster), 0, strlen($this->clusterPrefix)) != $this->clusterPrefix) {
+ if (!$is_all || substr(strtolower($cluster), 0, strlen($this->clusterPrefix)) != $this->clusterPrefix) {
continue;
}
$this->removeCluster($cluster);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment