From 2d2a21f0cc81c4177cbfcdfbe7592b087bdc171c Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 17 Oct 2016 11:21:19 -0600 Subject: [PATCH] Make sure python 2 is installed on Fedora We need this for ansible. Signed-off-by: Zack Cerza --- teuthology/provision/downburst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index b27e53fe29..12fa346df8 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -196,9 +196,9 @@ class Downburst(object): '/etc/sysconfig/network-scripts/ifcfg-eth0'], ]) user_info['packages'].append('redhat-lsb-core') - # On Ubuntu, starting with 16.04, we need to install 'python' to get - # python2.7, which ansible needs - elif os_type == 'ubuntu': + # On Ubuntu, starting with 16.04, and Fedora, starting with 24, we need + # to install 'python' to get python2.7, which ansible needs + if os_type in ('ubuntu', 'fedora'): user_info['packages'].append('python') user_fd = tempfile.NamedTemporaryFile(delete=False) yaml.safe_dump(user_info, user_fd) -- 2.39.5