]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Make sure python 2 is installed on Fedora 967/head
authorZack Cerza <zack@redhat.com>
Mon, 17 Oct 2016 17:21:19 +0000 (11:21 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 17 Oct 2016 17:45:32 +0000 (11:45 -0600)
We need this for ansible.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/provision/downburst.py

index b27e53fe29c4e80347e2e9e294b84212a5f0ce1f..12fa346df8c321478a5f3f6217d1c65a43c3da23 100644 (file)
@@ -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)