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

Commit 788e337

Browse files
authored
Merge pull request #2167 from oxyc/issue-2166
Issue #2166: Fix new ansible version output doesnt match regex
2 parents df60dd1 + 6312f18 commit 788e337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/drupalvm/vagrant.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def ansible_bin
5454

5555
# Return the ansible version parsed from running the executable path provided.
5656
def ansible_version
57-
/^[^\s]+ ([^\s]+)/.match(`#{ansible_bin} --version`) { |match| return match[1] }
57+
/(#{Gem::Version::VERSION_PATTERN})/.match(`#{ansible_bin} --version`) { |match| return match[1] }
5858
end
5959

6060
# Require that if installed, the ansible version meets the requirements.

0 commit comments

Comments
 (0)