Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
If users create a network context file with an empty line at the end, the entire OA module will fail because can't access any of the columns (index 0 an 1).
Also the code contains a csvreader.next() call that skips the first line so if your file is like:
ip,name
1.1.1.1,oneIp
2.2.2.2,twoIp
Network context will actually just return 1 record, that record being 2.2.2.2,twoIp because csv reader already takes headers.