From dfabbbb7fe664975508a2ad5455b7ece325f56f0 Mon Sep 17 00:00:00 2001 From: Moritz Heiber Date: Wed, 11 Jan 2023 12:54:42 +0100 Subject: [PATCH] Forgot one occurance of using the raw python vs. python3 --- .../provisioners/ansible/cap/guest/posix/ansible_installed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb index 3c7f623de..ab171ee5d 100644 --- a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb +++ b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb @@ -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