Browse Source

injector: strip trailing '\n' from lines

We don't need a corrupted hashes in db :)
pull/1/head
Hidden Z 14 years ago
parent
commit
2858ba6084
  1. 2
      injector

2
injector

@ -27,6 +27,8 @@ for line in f: @@ -27,6 +27,8 @@ for line in f:
if line.find('=') == -1:
print 'Invalid line: %s' % line
continue
# strip trailing '\n'
line = line.rstrip('\n')
entry = line.split('=')
try:
hostname = validate_hostname(entry[0])

Loading…
Cancel
Save