From 35014f5ce88a609d24ecfd32616f2a3360b581a2 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Tue, 7 Nov 2017 10:39:56 -0800 Subject: [PATCH] toolbox: generate config for mons with double digit names --- images/toolbox/toolbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/toolbox/toolbox.sh b/images/toolbox/toolbox.sh index f4d801796..e990611b4 100755 --- a/images/toolbox/toolbox.sh +++ b/images/toolbox/toolbox.sh @@ -28,7 +28,7 @@ KEYRING_FILE="/etc/ceph/keyring" # without specifying any arguments write_endpoints() { endpoints=$(cat ${MON_CONFIG}) - mon_endpoints=$(echo ${endpoints} | sed 's/rook-ceph-mon[0-9]=//g') + mon_endpoints=$(echo ${endpoints} | sed 's/rook-ceph-mon[0-9]\+=//g') DATE=$(date) echo "$DATE writing mon endpoints to ${CEPH_CONFIG}: ${endpoints}" cat < ${CEPH_CONFIG}