Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 7955c8c

Browse files
committed
tests: switch to Python 3 for Red Hat systems using dnf
1 parent e705b91 commit 7955c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

molecule/_resources/group_vars/all/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ platform_base:
2020
# TODO: btw why is there no dnf update while there's an equivalent in all other distros?
2121
image_setup: |
2222
if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y systemd-sysv python sudo bash ca-certificates && apt-get clean; \
23-
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
23+
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python3 sudo python3-devel python3-dnf bash && dnf clean all; \
2424
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
2525
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \
2626
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi

0 commit comments

Comments
 (0)