]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/*/osd-scrub-repair.sh: Convert to python3 print syntax 35445/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 27 May 2020 06:00:52 +0000 (16:00 +1000)
committerNathan Cutler <ncutler@suse.com>
Sat, 6 Jun 2020 08:31:37 +0000 (10:31 +0200)
Fixes: https://tracker.ceph.com/issues/45733
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 80e7b7c19bf28557e72bcfebcc8fbaa10b8b945b)

qa/standalone/scrub/osd-scrub-repair.sh

index d5a5ee332d7d5c7aee956c5529de01385c5db266..2008cd384dc098ea7c12d195a3fdf3fec52e88e6 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