From: Zack Cerza Date: Mon, 17 Oct 2016 17:21:19 +0000 (-0600) Subject: Make sure python 2 is installed on Fedora X-Git-Tag: 1.1.0~517^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F967%2Fhead;p=teuthology.git Make sure python 2 is installed on Fedora We need this for ansible. Signed-off-by: Zack Cerza --- diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index b27e53fe..12fa346d 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)