From: Sage Weil Date: Sat, 8 Apr 2017 18:19:00 +0000 (-0400) Subject: qa/workunits/cephtool/test.sh: handle non-escaped-/ json X-Git-Tag: v12.0.2~144^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14130%2Fhead;p=ceph.git qa/workunits/cephtool/test.sh: handle non-escaped-/ json Signed-off-by: Sage Weil --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index a5066fb0d7d..e2cebea3122 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1059,11 +1059,9 @@ function test_mon_osd() # osd blacklist # bl=192.168.0.1:0/1000 - # Escaped form which may appear in JSON output - bl_json=192.168.0.1:0\\\\/1000 ceph osd blacklist add $bl ceph osd blacklist ls | grep $bl - ceph osd blacklist ls --format=json-pretty | grep $bl_json + ceph osd blacklist ls --format=json-pretty | sed 's/\\\//\//' | grep $bl ceph osd dump --format=json-pretty | grep $bl ceph osd dump | grep "^blacklist $bl" ceph osd blacklist rm $bl