Skip to content

Commit

Permalink
Fixes #37178 - use safe navigation for operatingsystem (Katello#10897)
Browse files Browse the repository at this point in the history
(cherry picked from commit 664488d)
  • Loading branch information
jeremylenz authored and qcjames53 committed Mar 8, 2024
1 parent df32c08 commit ae8efcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/katello/api/v2/hosts/base.json.rabl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ object @resource
attributes :id, :name, :description

node :operatingsystem_family do |resource|
resource.operatingsystem.family
resource.operatingsystem&.family
end

node :operatingsystem_major do |resource|
resource.operatingsystem.major
resource.operatingsystem&.major
end

if @facet
Expand Down

0 comments on commit ae8efcc

Please sign in to comment.