mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-14 12:00:14 -04:00
@@ -71,7 +71,7 @@ class GlancesExport(object):
|
||||
'docker',
|
||||
'uptime']
|
||||
|
||||
def load_conf(self, section, mandatories=['host', 'port'], options=[]):
|
||||
def load_conf(self, section, mandatories=['host', 'port'], options=None):
|
||||
"""Load the export <section> configuration in the Glances configuration file.
|
||||
|
||||
:param section: name of the export section to load
|
||||
@@ -80,6 +80,8 @@ class GlancesExport(object):
|
||||
|
||||
:returns: Boolean -- True if section is found
|
||||
"""
|
||||
options = options or []
|
||||
|
||||
if self.config is None:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user