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

Commit

Permalink
Fix calculation of salt_repo_name for SLE/Leap 15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh committed Dec 29, 2022
1 parent c5a954b commit 4fb54c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_salt_repo_name(distro):
return 'CentOS_{0}'.format(version_major)
elif vendor == 'fedora':
return 'Fedora_{0}'.format(version_major)
elif vendor in ['sles', 'leap'] and (int(version_major), int(version_minor or "0")) >= (15, 3):
elif vendor in ['sles', 'leap'] and (int(version_major), int(version_minor or "0")) > (15, 3):
return '{}.{}'.format(version_major, version_minor)
elif vendor == 'sles':
return 'SLE_{0}_SP{1}'.format(version_major, version_minor)
Expand Down

1 comment on commit 4fb54c5

@agraul
Copy link
Member

@agraul agraul commented on 4fb54c5 Jan 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that needed?

Please sign in to comment.