There was an error while loading. Please reload this page.
1 parent df60dd1 commit 6312f18Copy full SHA for 6312f18
lib/drupalvm/vagrant.rb
@@ -54,7 +54,7 @@ def ansible_bin
54
55
# Return the ansible version parsed from running the executable path provided.
56
def ansible_version
57
- /^[^\s]+ ([^\s]+)/.match(`#{ansible_bin} --version`) { |match| return match[1] }
+ /(#{Gem::Version::VERSION_PATTERN})/.match(`#{ansible_bin} --version`) { |match| return match[1] }
58
end
59
60
# Require that if installed, the ansible version meets the requirements.
0 commit comments