Skip to content

Commit

Permalink
strip colum title in table reader output
Browse files Browse the repository at this point in the history
  • Loading branch information
marcquark committed Dec 16, 2020
1 parent 4cc189d commit fd21647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/frr/src/opnsense/scripts/frr/legacy-diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def read_line(self, line: str) -> List[Dict[str, str]]:
if len(line) > self.columns[-1]['start_index']:
for column in self.columns:
# use the column's name as dict key and just extract the data from start to end index
result[column['title']] = line[column['start_index']:column['end_index']].strip()
result[column['title'].strip()] = line[column['start_index']:column['end_index']].strip()

return result

Expand Down

0 comments on commit fd21647

Please sign in to comment.