Skip to content

Commit

Permalink
openshift: imrprove ci tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Dec 23, 2024
1 parent 734fec6 commit 1cf856d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/cluster/openshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def create(config, plandir, cluster, overrides, dnsconfig=None):
if '0-ec.' in str(tag):
version = 'dev-preview'
data['version'] = version
elif float(tag) > float(OPENSHIFT_TAG):
elif int(tag.split('.')[1]) > int(OPENSHIFT_TAG.split('.')[1]):
version = 'ci'
data['version'] = version
if os.path.exists('coreos-installer'):
Expand Down

0 comments on commit 1cf856d

Please sign in to comment.