Skip to content

Commit

Permalink
Fix LEAPP_IPU_IN_PROGRESS (9to1 -> 9to10)
Browse files Browse the repository at this point in the history
Implementation of processing versions inside commands/command_utils.py
has been bugy. One of function returned string instread of list
which led to the situation that only the first character has been
returned instead of the first chunk. This has been ok for releases
where major version is just one decimal. However since el 10 it has
been buggy and generated set envar:
    LEAPP_IPU_IN_PROGRESS=9to1
instead of
    LEAPP_IPU_IN_PROGRESS=9to10

Now it should be working correctly again.

jira: OAMG-11260
  • Loading branch information
matejmatuska authored and Rezney committed Jul 18, 2024
1 parent da6f024 commit b6e4f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/command_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def check_version(version):
"""
if not re.match(VERSION_REGEX, version):
raise CommandError('Unexpected format of target version: {}'.format(version))
return version.split('.')[0]
return version.split('.')


def get_major_version(version):
Expand Down

0 comments on commit b6e4f2b

Please sign in to comment.