Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Trailing slashes when adding a monitor to a directory cause a failure when detecting existing monitors. #7

Description

@mattmcla

Consider the following:

include_recipe "splunkstorm"

splunkstorm_monitor "rsyslog" do
      path "/srv/rsyslog/"
      action :add
end

Splunkstorm Forwarder automatically removes tailing slashes when adding monitoring to a directory. The collision detection in the cookbook does not take this into consideration and fails to recognize an already existing monitor.

A somewhat trivial bug but caused me a bit of heartache this afternoon ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions