Skip to content

Commit 6312f18

Browse files
committed
Issue geerlingguy#2166: Fix new ansible version output doesnt match regex
1 parent df60dd1 commit 6312f18

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)