]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/standalone/scrub/osd-scrub-snaps.sh: fix Python print syntax
authorRonen Friedman <rfriedma@redhat.com>
Mon, 21 Dec 2020 14:52:27 +0000 (16:52 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 21 Dec 2020 14:52:27 +0000 (16:52 +0200)
Fixes: https://tracker.ceph.com/issues/48690
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
qa/standalone/scrub/osd-scrub-snaps.sh

index ed5d933358bab32bf72b8a1ec0a0bcf655163182..621fe84accad6e682989a96d6f028362905481f4 100755 (executable)
@@ -21,7 +21,7 @@ source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 getjson="no"
 
 jqfilter='.inconsistents'
-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