From 7f0ea0f374eb538b598bec1be8d741e2ccb25af7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 15 Jun 2016 08:54:34 -0600 Subject: [PATCH] get_gitbuilder_hash: use default distro if needed http://tracker.ceph.com/issues/16328 Fixes: 16328 Signed-off-by: Zack Cerza --- teuthology/suite/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/suite/util.py b/teuthology/suite/util.py index 977b37d13d..65fb1bf3fc 100644 --- a/teuthology/suite/util.py +++ b/teuthology/suite/util.py @@ -96,6 +96,8 @@ def get_gitbuilder_hash(project='ceph', branch='master', flavor='basic', # 'https://api.github.com/repos/ceph/ceph/git/refs/heads/master') # hash = .json()['object']['sha'] (arch, release, _os) = get_distro_defaults(distro, machine_type) + if distro is None: + distro = _os.name gp = GitbuilderProject( project, dict( -- 2.39.5