From dc2894944aaef8aca5f00ebc929c7f6a0f79a193 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 20 May 2016 17:06:07 -0600 Subject: [PATCH] packaging: Drop GitbuilderProject._get_codename() Signed-off-by: Zack Cerza --- teuthology/packaging.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/teuthology/packaging.py b/teuthology/packaging.py index 2ff4ecd972..1325ce5053 100644 --- a/teuthology/packaging.py +++ b/teuthology/packaging.py @@ -585,7 +585,7 @@ class GitbuilderProject(object): # deb based systems use codename instead of a distro/version combo if not codename: # lookup codename based on distro string - codename = cls._get_codename(distro, version) + codename = OS._version_to_codename(distro, version) if not codename: msg = "No codename found for: {distro} {version}".format( distro=distro, @@ -600,23 +600,6 @@ class GitbuilderProject(object): version=cls._parse_version(version), ) - @staticmethod - def _get_codename(distro, version): - """ - Attempts to find the codename for a given distro / version - pair. Will first attempt to find the codename for the full - version and if not found will look again using only the major - version. If a codename is not found, None is returned. - - The constant DISTRO_CODENAME_MAP is used to provide this mapping. - - :returns: The codename as string or None if not found. - """ - try: - return OS._version_to_codename(distro, version) - except RuntimeError: - pass - def _get_version(self): """ Attempts to find the distro version from the job_config. -- 2.39.5