Skip to content

Commit

Permalink
Allowing future SUMA versions in the check
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Nov 26, 2024
1 parent d9042ff commit 3e03f22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def all_allowed_paths(headers)
# SUMA 5.0 must have access to SUMA 4.3, 4.2 and so on
micro = p.identifier.downcase.include?('sle-micro')
instance_id_header = headers.fetch('X-Instance-Identifier', '').casecmp('suse-manager-server').zero?
instance_version_header = headers.fetch('X-Instance-Version', '') == '5.0'
instance_version_header = headers.fetch('X-Instance-Version', '0').split('.')[0] >= '5'
manager || (micro && instance_id_header && instance_version_header)
end

Expand Down

0 comments on commit 3e03f22

Please sign in to comment.