From 78e0751f8c8ea0e3d77b72028c301d8223941efb Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 24 Feb 2016 16:53:25 -0700 Subject: [PATCH] get_distro_version: Always return a string Signed-off-by: Zack Cerza --- teuthology/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.5