Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLM configuration error #29

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Fix CLM configuration error #29

merged 1 commit into from
Nov 4, 2024

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Nov 4, 2024

The "filter" field is optional, ensure it is present before setting the environment variable.

Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]: task/module/loki1/cb194da5-28c4-47b5-9df8-317b7b6fa786: set-clm-forwarder/10set is starting
Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]: Traceback (most recent call last):
Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]:   File "/home/loki1/.config/actions/set-clm-forwarder/10set", line 25, in <module>
Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]:     agent.set_env('CLOUD_LOG_MANAGER_FILTER', f"{request['filter']}")
Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]:                                                  ~~~~~~~^^^^^^^^^^
Nov 04 11:12:08 rl1.dp.nethserver.net agent@loki1[34817]: KeyError: 'filter'
Nov 04 11:12:09 rl1.dp.nethserver.net agent@loki1[34817]: task/module/loki1/cb194da5-28c4-47b5-9df8-317b7b6fa786: action "set-clm-forwarder" status is "aborted" (1) at step 10set

Refs NethServer/dev#7061

The "filter" field is optional, ensure it is present before setting the
environment variable.
@DavidePrincipi DavidePrincipi merged commit 59b9409 into main Nov 4, 2024
4 checks passed
@DavidePrincipi DavidePrincipi deleted the feat-7061-2 branch November 4, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants