Browse Source

injector: ignore lines without '=' separator

pull/1/head
Hidden Z 14 years ago
parent
commit
798d5cb2a7
  1. 3
      injector

3
injector

@ -24,6 +24,9 @@ args = parser.parse_args() @@ -24,6 +24,9 @@ args = parser.parse_args()
f = open(args.hostsfile, 'r')
for line in f:
if line.find('=') == -1:
print 'Invalid line: %s' % line
continue
entry = line.split('=')
try:
hostname = validate_hostname(entry[0])

Loading…
Cancel
Save