Forgot one occurance of using the raw python vs. python3

This commit is contained in:
Moritz Heiber 2023-01-11 12:54:42 +01:00
parent 5f82adf122
commit dfabbbb7fe
No known key found for this signature in database
GPG Key ID: FCA812B2E3D5E107

View File

@ -11,7 +11,7 @@ module VagrantPlugins
command = 'test -x "$(command -v ansible)"'
unless version.empty?
command << "&& [[ $(python -c \"import importlib.metadata; print(importlib.metadata.version('ansible'))\") == \"#{version}\" ]]"
command << "&& [[ $(python3 -c \"import importlib.metadata; print(importlib.metadata.version('ansible'))\") == \"#{version}\" ]]"
end
machine.communicate.test command, sudo: false