Skip to content

Linux Agent: de-bash is_valid_plugin()#166

Closed
rawiriblundell wants to merge 4 commits into
Checkmk:masterfrom
rawiriblundell:is_valid_plugin
Closed

Linux Agent: de-bash is_valid_plugin()#166
rawiriblundell wants to merge 4 commits into
Checkmk:masterfrom
rawiriblundell:is_valid_plugin

Conversation

@rawiriblundell
Copy link
Copy Markdown
Contributor

is_valid_plugin() tries to be too clever, and in doing so it breaks portability.

This PR replaces it with a far simpler, more obvious and portable approach.

@jonaskluger
Copy link
Copy Markdown
Contributor

Hello Rawiri,

thank you for this pull request. We will have a closer look at your patch and discuss internally on how and if we can implement it into the official code base.

Internal Ref: CMK-4332

@rawiriblundell
Copy link
Copy Markdown
Contributor Author

Hi,
this is another obvious and simple change that has been sitting here inexplicably for several months. Can we please get this merged?

Cheers

@svenpanne
Copy link
Copy Markdown
Contributor

Well, it's obviously not obvious at all. 😉 This PR has 2 bugs in it:

  • The patterns in the case were missing a dot (it's all about extensions).
  • A test for being a file was missing (ignore directories).

I have just committed a fixed version of this PR to master.

Apart from that: The reason that we are a bit slow regarding PRs and issues on GitHub is simply manpower. We are doing this on a best-effort basis, and we're trying to improve response times, but sometimes this doesn't really work well...

@svenpanne svenpanne closed this Jan 4, 2021
@rawiriblundell rawiriblundell deleted the is_valid_plugin branch January 4, 2021 09:55
CheckmkCI pushed a commit that referenced this pull request Nov 19, 2025
Change-Id: Ia5e5373e9e4ec09bae5bfe0ef4081395cdcd0035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants