Skip to content

Commit

Permalink
packaging.py: make _get_distro() support openSUSE
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
smithfarm committed May 14, 2016
1 parent 7b7b835 commit 9016350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions teuthology/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ def _get_distro(self, distro=None, version=None, codename=None):
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:
Expand Down

0 comments on commit 9016350

Please sign in to comment.