Skip to content

Commit

Permalink
Fix a print statement to be python 3 compliant (#3144)
Browse files Browse the repository at this point in the history
  • Loading branch information
carrete authored and andrewkroh committed Dec 8, 2016
1 parent 4e7a094 commit 4f844d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/scripts/generate_index_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def field_to_json(desc, path, output):
global unique_fields

if path in unique_fields:
print "ERROR: Field", path, "is duplicated. Please delete it and try again. Fields already are", unique_fields
print("ERROR: Field {} is duplicated. Please delete it and try again. Fields already are {}".format(path, ", ".join(unique_fields)))
sys.exit(1)
else:
unique_fields.append(path)
Expand Down

0 comments on commit 4f844d4

Please sign in to comment.