completely remove global hide_ok to avoid ambiguity
This commit is contained in:
parent
261847493e
commit
26313c0564
1 changed files with 0 additions and 3 deletions
3
vdstatus
3
vdstatus
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
# pylint: disable=C0111
|
||||
import argparse
|
||||
import importlib
|
||||
import json
|
||||
|
@ -14,7 +13,6 @@ DEFAULT_CONFIG = os.path.join(os.environ['HOME'], '.config/vdstatus/conf.yaml')
|
|||
DEFAULTS = {
|
||||
'output_format': 'term',
|
||||
'output_freq': 1,
|
||||
'hide_ok': False,
|
||||
'plugins': [{'name': 'date'}]
|
||||
}
|
||||
|
||||
|
@ -52,7 +50,6 @@ class PluginRunner:
|
|||
outputs = list()
|
||||
for plugin in self.plugins_loaded:
|
||||
if \
|
||||
not self.conf['hide_ok'] or \
|
||||
not plugin.conf['hide_ok'] or \
|
||||
not plugin.hide:
|
||||
outputs.append(plugin.status)
|
||||
|
|
Loading…
Reference in a new issue