Skip to content

Conversation

erickuiper
Copy link

Current version check does not match the version output
query = shell_out("#{telegraf_executable} --version").stdout.chomp
=> "Telegraf 1.14.2 (git: HEAD fb74eaf2)"

Matches = /^Telegraf v(?(\d+.)?(\d+.)?(*|\d+)).*/.match(query)
=> nil

matches = /^Telegraf (?(\d+.)?(\d+.)?(*|\d+)).*/.match(query)
=> #<MatchData "Telegraf 1.14.2 (git: HEAD fb74eaf2)" version:"1.14.2">

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.

1 participant