Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Won't support empty label in app settings #4

Open
olberger opened this issue Jan 5, 2023 · 0 comments
Open

Won't support empty label in app settings #4

olberger opened this issue Jan 5, 2023 · 0 comments

Comments

@olberger
Copy link

olberger commented Jan 5, 2023

As seen in: #2

/opt/yunomonitor/yunomonitor.py -c /opt/yunomonitor/conf/yunomonitor.yml
INFO:root:CHECKING EACH SERVERS...
INFO:root:[localhost] CONFIGURING...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/opt/yunomonitor/yunomonitor.py", line 448, in run
    self.ynh_maps[self.server] = self._load_monitoring_config()
  File "/opt/yunomonitor/yunomonitor.py", line 488, in _load_monitoring_config
    config = generate_monitoring_config()
  File "/opt/yunomonitor/yunomonitor.py", line 778, in generate_monitoring_config
    "label": app_settings['label'],
KeyError: 'label'
INFO:root:FILTERING...
INFO:root:MAILING...

Dunno why an app wouldn't have a label, though :-/

olberger added a commit to olberger/yunomonitor that referenced this issue Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant