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 sbernhard committed Feb 29, 2024
1 parent 086d0b6 commit 06a29a5
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 06a29a5

Please sign in to comment.