Skip to content

smartd_log: skip non-CSVs early#5081

Merged
ilyam8 merged 1 commit intonetdata:masterfrom
kevin-hanselman:smartd_log_skip_non_csvs_early
Dec 30, 2018
Merged

smartd_log: skip non-CSVs early#5081
ilyam8 merged 1 commit intonetdata:masterfrom
kevin-hanselman:smartd_log_skip_non_csvs_early

Conversation

@kevin-hanselman
Copy link
Contributor

@kevin-hanselman kevin-hanselman commented Dec 30, 2018

Summary

The smartd_log plugin may see files that don't fit the expected CSV format, in which case the filename decomposition is likely to fail. We can move the "CSV file check" code earlier in the necessary code to avoid this.

Fixes #5079

Component Name

smartd_log plugin

Additional Information

@CLAassistant
Copy link

CLAassistant commented Dec 30, 2018

CLA assistant check
All committers have signed the CLA.

@ilyam8
Copy link
Member

ilyam8 commented Dec 30, 2018

@kevlar1818

thanks for contributing 👍

@ilyam8
Copy link
Member

ilyam8 commented Dec 30, 2018

@kevlar1818

please sign the CLA

@ilyam8 ilyam8 merged commit b328fde into netdata:master Dec 30, 2018
@netdatabot netdatabot added area/collectors Everything related to data collection area/external/python labels Dec 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

smartd_log: check() unhandled exception: list index out of range

4 participants