From 4b8211a47199645bb4af3d1dad8559c45ee741f1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 19 Jul 2018 14:04:59 -0700 Subject: [PATCH] composer-cli: Fix non-zero epoch in projets info The json value is an int, so convert it to a str. (cherry picked from commit 18521cec1a64d858dfb346639f65b860f69b6b67) --- src/composer/cli/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composer/cli/projects.py b/src/composer/cli/projects.py index ca452884..acf7f9e0 100644 --- a/src/composer/cli/projects.py +++ b/src/composer/cli/projects.py @@ -100,7 +100,7 @@ def projects_info(socket_path, api_version, args, show_json=False): print("%s: %s" % (k.title(), textwrap.fill(proj[k], subsequent_indent=" " * (len(k)+2)))) print("Builds: ") for build in proj["builds"]: - print(" %s%s-%s.%s at %s for %s" % ("" if not build["epoch"] else build["epoch"] + ":", + print(" %s%s-%s.%s at %s for %s" % ("" if not build["epoch"] else str(build["epoch"]) + ":", build["source"]["version"], build["release"], build["arch"],