]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/*/osd-scrub-repair.sh: Convert to python3 print syntax
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 27 May 2020 06:00:52 +0000 (16:00 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Wed, 27 May 2020 22:32:54 +0000 (08:32 +1000)
Fixes: https://tracker.ceph.com/issues/45733
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
qa/standalone/scrub/osd-scrub-repair.sh

index 3df2ec3f6a76cf66822808d885e242d611c9bd99..747e4cee182f5258a9e78ae6a771dfc57ad46675 100755 (executable)
@@ -45,7 +45,7 @@ walk(if type == "object" then del(.mtime) else . end)
 | walk(if type == "object" then del(.version) else . end)
 | walk(if type == "object" then del(.prior_version) else . end)'
 
-sortkeys='import json; import sys ; JSON=sys.stdin.read() ; ud = json.loads(JSON) ; print json.dumps(ud, sort_keys=True, indent=2)'
+sortkeys='import json; import sys ; JSON=sys.stdin.read() ; ud = json.loads(JSON) ; print(json.dumps(ud, sort_keys=True, indent=2))'
 
 function run() {
     local dir=$1