From: Zack Cerza Date: Wed, 24 Feb 2016 23:53:25 +0000 (-0700) Subject: get_distro_version: Always return a string X-Git-Tag: 1.1.0~673^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=78e0751f8c8ea0e3d77b72028c301d8223941efb;p=teuthology.git get_distro_version: Always return a string Signed-off-by: Zack Cerza --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 4eef301c3a..4a3b94ef29 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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):