diff --git a/komodo/lint_maturity.py b/komodo/lint_maturity.py index e67363f6f..9095e4f90 100644 --- a/komodo/lint_maturity.py +++ b/komodo/lint_maturity.py @@ -116,10 +116,9 @@ def msg_release_exception(release_basename, release_version): def get_release_version(release_basename, tag_exceptions_release): - release_cleanname = release_basename.split("-")[0] - if release_cleanname not in tag_exceptions_release: - release_version = get_release_type(release_cleanname) + if release_basename not in tag_exceptions_release: + release_version = get_release_type(release_basename) else: release_version = "exception" @@ -131,7 +130,7 @@ def run(files_to_lint: List[str], tag_exceptions): system_warning_msg = "" for file_to_lint in files_to_lint: - release_basename = os.path.basename(file_to_lint) + release_basename = ".".join(os.path.basename(file_to_lint).split(".")[0:-1]) release_version = get_release_version( release_basename, tag_exceptions["release"],