completely remove global hide_ok to avoid ambiguity

This commit is contained in:
Von Random 2019-03-06 13:01:06 +03:00
parent 261847493e
commit 26313c0564

View file

@ -1,5 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/python3
# pylint: disable=C0111
import argparse import argparse
import importlib import importlib
import json import json
@ -14,7 +13,6 @@ DEFAULT_CONFIG = os.path.join(os.environ['HOME'], '.config/vdstatus/conf.yaml')
DEFAULTS = { DEFAULTS = {
'output_format': 'term', 'output_format': 'term',
'output_freq': 1, 'output_freq': 1,
'hide_ok': False,
'plugins': [{'name': 'date'}] 'plugins': [{'name': 'date'}]
} }
@ -52,7 +50,6 @@ class PluginRunner:
outputs = list() outputs = list()
for plugin in self.plugins_loaded: for plugin in self.plugins_loaded:
if \ if \
not self.conf['hide_ok'] or \
not plugin.conf['hide_ok'] or \ not plugin.conf['hide_ok'] or \
not plugin.hide: not plugin.hide:
outputs.append(plugin.status) outputs.append(plugin.status)