mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 19:25:27 +03:00
Correct an issue if args is None in the export load method
This commit is contained in:
parent
ba74feadae
commit
ddb169eeda
@ -106,6 +106,8 @@ class GlancesStats(object):
|
||||
|
||||
def load_exports(self, args=None):
|
||||
"""Load all exports module in the 'exports' folder."""
|
||||
if args is None:
|
||||
return False
|
||||
header = "glances_"
|
||||
# Transform the arguments list into a dict
|
||||
# The aim is to chec if the export module should be loaded
|
||||
@ -126,6 +128,7 @@ class GlancesStats(object):
|
||||
self._exports[export_name] = export_module.Export(args=args)
|
||||
# Log plugins list
|
||||
logger.debug("Available exports modules list: {0}".format(self.getAllExports()))
|
||||
return True
|
||||
|
||||
def getAllPlugins(self):
|
||||
"""Return the plugins list."""
|
||||
|
Loading…
Reference in New Issue
Block a user