Chore: Update to python38 54/69954/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 5 Apr 2022 02:33:34 +0000 (12:33 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 5 Apr 2022 02:33:34 +0000 (12:33 +1000)
The provisioning script fails with errors while
trying to install python36 on CentOS8 image build.

python 3.6 is EOL, bump the install script to use python 3.8.

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I0431ee938c9da1c254e9ccc80c0e7d760bbde0ff

provision/install-python.sh

index c5e9e6e..c98cf71 100755 (executable)
@@ -96,12 +96,12 @@ if is_ubuntu; then
 fi
 
 if is_centos8; then
-    echo "Install python36"
+    echo "Install python38"
     dnf clean all
-    dnf install -y python36
+    dnf install -y python38
 fi
 
-type python || type python3
+type python3
 
 # Ansible requires sudo so ensure it is available.
 if ! command -v sudo; then