Skip to content

Commit

Permalink
Fixes #37727 - Handle blank operating systems on hosts (#11105)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 authored Aug 14, 2024
1 parent 3adebd6 commit 447b04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/katello/concerns/host_managed_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,10 @@ def probably_rhel?

def rhel_eos_schedule_index
return nil unless probably_rhel?
major = operatingsystem.major
major = operatingsystem&.major
return nil unless major
return "RHEL#{major}" unless major == "7"

arch_name = architecture&.name
case arch_name
when "ppc64le"
Expand Down

0 comments on commit 447b04b

Please sign in to comment.