Project

General

Profile

Bug #48690

qa/standalone/scrub/osd-scrub-snaps.sh: Python3 syntax error

Added by Ronen Friedman over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

'print' in obsolete Python2 syntax.

Error in log:

../qa/standalone/scrub/osd-scrub-snaps.sh:227: TEST_scrub_snaps: python3 -c 'import json; import sys ; JSON=sys.stdin.read() ; ud = json.loads(JSON) ; print json.dumps(ud, sort_keys=True, indent=2)'
File "<string>", line 1
import json; import sys ; JSON=sys.stdin.read() ; ud = json.loads(JSON) ; print json.dumps(ud, sort_keys=True, indent=2)

Code:
sortkeys='import json; import sys ; JSON=sys.stdin.read() ; ud = json.loads(JSON) ; print json.dumps(ud, sort_keys=True, indent=2)'

History

#1 Updated by Ronen Friedman over 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 38676

#2 Updated by Kefu Chai about 3 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF