@cryptotaxi247 / netdata-1 / commits / d581a4f27

fix using undefined var when loading job statuses in python.d (#15965)

Ilya Mashchenko committed Sep 14, 2023 at 13:01 UTC d581a4f2768b5faddb22184cc40d9324eee4093e
1 file changed +2 -2
collectors/python.d.plugin/python.d.plugin.in
+2 -2
@@ -582,8 +582,8 @@ class Plugin:
582 try:
583 statuses = JobsStatuses().from_file(abs_path)
584 except Exception as error:
585 - self.log.error("[{0}] config file invalid YAML format: {1}".format(
586 - module_name, ' '.join([v.strip() for v in str(error).split('\n')])))
585 + self.log.error("'{0}' invalid JSON format: {1}".format(
586 + abs_path, ' '.join([v.strip() for v in str(error).split('\n')])))
587 return None
588 self.log.debug("'{0}' is loaded".format(abs_path))
589 return statuses