enable prod and staging clusters in brick manager
authorBill Erickson <berickxx@gmail.com>
Tue, 19 May 2015 14:55:09 +0000 (10:55 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/brick-manager.sh

index 33be2c7..0ef0801 100755 (executable)
@@ -99,17 +99,14 @@ function inspect_args {
     else
 
         if [ "$CLUSTER" = 'production' ]; then
-            announce "Cluster 'production' not yet supported"
-            exit
             SERVERS=( ${PRODUCTION_BRICKS[@]} );
         elif [ "$CLUSTER" = 'staging' ]; then
-            announce "Cluster 'staging' not yet supported"
-            exit
             SERVERS=( ${STAGING_BRICKS[@]} );
         elif [ "$CLUSTER" = 'testing' ]; then
             SERVERS=( ${TESTING_BRICKS[@]} );
         elif [ -n "$CLUSTER" ]; then
-            announce "Supported clusters: testing, staging, production"
+            announce "Cluster '$CLUSTER' not supported."
+            announce "Supported clusters: testing staging production"
             exit;
         else
             usage