C-RH-C / hcs-collector

GNU General Public License v3.0
2 stars 5 forks source link

collector code fails if hcs-data doesnt have exactly three directories #17

Closed starnold-redhat closed 1 year ago

starnold-redhat commented 1 year ago

Inside the process-rhel ( or any of the process commands) you have CURRENT_TIMEFRAME_YEAR = path_to_csv_dir.split("/")[4] CURRENT_TIMEFRAME_MONTH = path_to_csv_dir.split("/")[5]

So if the hcs-data field has more or less than than three parts to the path it will fail

waldirio commented 1 year ago

Hello @starnold-redhat

Thank you! Waldirio