Skip to content

Commit

Permalink
Correct unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Oct 13, 2019
1 parent e29a153 commit 793552e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions glances/plugins/glances_plugin.py
Expand Up @@ -86,10 +86,11 @@ def __init__(self,
self.stats_history = self.init_stats_history()

# Init the limits (configuration keys) dictionnary
logger.debug('Load section {} in {}'.format(self.plugin_name,
config.config_file_paths()))
self._limits = dict()
self.load_limits(config=config)
if config is not None:
logger.debug('Load section {} in {}'.format(self.plugin_name,
config.config_file_paths()))
self.load_limits(config=config)

# Init the actions
self.actions = GlancesActions(args=args)
Expand Down

0 comments on commit 793552e

Please sign in to comment.