]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
get_distro_version: Always return a string 792/head
authorZack Cerza <zack@redhat.com>
Wed, 24 Feb 2016 23:53:25 +0000 (16:53 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 24 Feb 2016 23:53:25 +0000 (16:53 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/misc.py

index 4eef301c3a9284dab69aa36878a09430d0f137ee..4a3b94ef2948a04e8142478be71b165853988f28 100644 (file)
@@ -1230,12 +1230,12 @@ def get_distro_version(ctx):
     """
     distro = get_distro(ctx)
     if ctx.os_version is not None:
-        return ctx.os_version
+        return str(ctx.os_version)
     try:
         os_version = ctx.config.get('os_version', DEFAULT_OS_VERSION[distro])
     except AttributeError:
         os_version = DEFAULT_OS_VERSION[distro]
-    return os_version
+    return str(os_version)
 
 
 def get_multi_machine_types(machinetype):