Skip to content

Commit

Permalink
Fix a print statement to be python 3 compliant (elastic#3144)
Browse files Browse the repository at this point in the history
  • Loading branch information
carrete authored and suraj-soni committed Dec 15, 2016
1 parent ef10ff4 commit b262d59
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 b262d59

Please sign in to comment.