move adding python3-devel.x86_64 to bootstrap_os_packages to avoid potential race condition

This commit is contained in:
Erica Portnoy 2020-08-17 13:53:55 -07:00
parent 45f30b5d46
commit c90329c5c9
2 changed files with 7 additions and 5 deletions

View file

@ -140,6 +140,13 @@ BootstrapRpmPython3() {
python3-devel
"
if ! $TOOL list python3-devel >/dev/null 2>&1; then
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
python_pkgs="$python_pkgs
python3-devel.x86_64
"
fi
BootstrapRpmCommonBase "$python_pkgs"
}

View file

@ -38,11 +38,6 @@ targets:
type: centos
virt: hvm
user: ec2-user
userdata: |
#cloud-config
runcmd:
- yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
- yum install -y python3-devel.x86_64
- ami: ami-0c322300a1dd5dc79
name: RHEL8
type: centos