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:
if line.find('=') == -1: if line.find('=') == -1:
print 'Invalid line: %s' % line print 'Invalid line: %s' % line
continue continue
# strip trailing '\n'
line = line.rstrip('\n')
entry = line.split('=') entry = line.split('=')
try: try:
hostname = validate_hostname(entry[0]) hostname = validate_hostname(entry[0])

Loading…
Cancel
Save