Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #111 from RedHatProductSecurity/fix-short-version
Browse files Browse the repository at this point in the history
fix short version names when processing a version=None
  • Loading branch information
JimFuller-RedHat authored Mar 21, 2023
2 parents 97a1ea7 + 242a8a5 commit f049ceb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions griffon/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def component_type_style(type):


def output_version(ctx, version):
if version.startswith("sha256") and ctx.obj["SHORT_VERSION_VALUES"]:
return f"sha256 ...{version[-8:]}"
if version:
if version.startswith("sha256") and ctx.obj["SHORT_VERSION_VALUES"]:
return f"sha256 ...{version[-8:]}"
return version


Expand Down

0 comments on commit f049ceb

Please sign in to comment.