]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
get_gitbuilder_hash: use default distro if needed 877/head
authorZack Cerza <zack@redhat.com>
Wed, 15 Jun 2016 14:54:34 +0000 (08:54 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 15 Jun 2016 15:02:57 +0000 (09:02 -0600)
http://tracker.ceph.com/issues/16328
Fixes: 16328
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite/util.py

index 977b37d13dc894978fb039962dac1d32be8223ca..65fb1bf3fc022ef2326b2f8f6c7d82473ff4a70f 100644 (file)
@@ -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(