Eevans has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384055 )

Change subject: Use instance `ID=default` when no ID is supplied
......................................................................

Use instance `ID=default` when no ID is supplied

Bug: T178169
Change-Id: I9363c3c0230efbc509089b902e2e18796cc87d26
---
M c-cqlsh
1 file changed, 9 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/cassandra-tools-wmf 
refs/changes/55/384055/1

diff --git a/c-cqlsh b/c-cqlsh
index 9d60bf1..bda490c 100755
--- a/c-cqlsh
+++ b/c-cqlsh
@@ -10,9 +10,16 @@
     . /usr/share/cassandra-tools-wmf/functions
 fi
 
-ID="$1"
+# Single instance installs have an instance ID of 'default'; Accept
+# the absence of an argument to mean 'default'.
+if [ -n "$1" ]; then
+    ID="$1"
+    shift 1
+else
+    ID=default
+fi
+
 assert_instance_exists "$ID"
-shift 1
 
 CONFDIR=`config_directory $ID`
 

-- 
To view, visit https://gerrit.wikimedia.org/r/384055
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9363c3c0230efbc509089b902e2e18796cc87d26
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/cassandra-tools-wmf
Gerrit-Branch: master
Gerrit-Owner: Eevans <eev...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to