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

Do not keep stale targets in csv file #96

Merged
merged 7 commits into from
Nov 15, 2023
Merged

Do not keep stale targets in csv file #96

merged 7 commits into from
Nov 15, 2023

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Nov 14, 2023

Issue

When nrpe changed prefix, cos-proxy failed to correctly calculate the current list of targets, keeping stale rows in the file.

Solution

Make sure stale targets are not kept, by correctly looking up entries in the csv.

Fixes #93.

src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
tests/unit/test_relation_monitors.py Dismissed Show dismissed Hide dismissed
Copy link
Contributor

@lucabello lucabello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
(I rebased on main so it's mergeable, but CI was green already!)

@simskij
Copy link
Member

simskij commented Nov 15, 2023

@sed-i seems your commits are not signed so i can't merge. can you look into this? thanks.

@sed-i sed-i force-pushed the feature/fix-append branch from eb28349 to 335de07 Compare November 15, 2023 16:06
@sed-i sed-i merged commit a374516 into main Nov 15, 2023
13 checks passed
@sed-i sed-i deleted the feature/fix-append branch November 15, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants