]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
packaging.py: make _get_distro() support openSUSE 861/head
authorNathan Cutler <ncutler@suse.com>
Sat, 14 May 2016 13:32:04 +0000 (15:32 +0200)
committerNathan Cutler <ncutler@suse.com>
Sat, 14 May 2016 13:33:18 +0000 (15:33 +0200)
Add an explicit "elif" block for opensuse - without this, it falls through into
the else clause and dies because it cannot determine a codename.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/packaging.py

index 6a125ca0ab48807fdc7607b2f6966e75d04eba0d..a4cafbb942f653d485e04d47d5363cb7ead173b4 100644 (file)
@@ -599,6 +599,8 @@ class GitbuilderProject(object):
             distro = "centos"
         elif distro == "fedora":
             distro = "fc"
+        elif distro == "opensuse":
+            distro = "opensuse"
         else:
             # deb based systems use codename instead of a distro/version combo
             if not codename: