From: Kyr Shatskyy Date: Sat, 14 Mar 2020 23:27:30 +0000 (+0100) Subject: py3: fix teuthology version banner for py3 X-Git-Tag: 1.1.0~144^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad1a327aa03293a2f61c315337cf2201c3fefab7;p=teuthology.git py3: fix teuthology version banner for py3 Signed-off-by: Kyr Shatskyy --- diff --git a/teuthology/__init__.py b/teuthology/__init__.py index 9c7b78b6e..76a5fc7c8 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -37,10 +37,10 @@ __version__ = '1.0.0' # do our best, but if it fails, continue with above try: - __version__ += '-' + subprocess.check_output( + __version__ += '-' + str(subprocess.check_output( 'git rev-parse --short HEAD'.split(), cwd=os.path.dirname(os.path.realpath(__file__)) - ).strip() + ).decode()).strip() except Exception as e: # before logging; should be unusual print("Can't get version from git rev-parse %s" % e, file=sys.stderr)