Skip to content

Commit

Permalink
Fixes #37178 - use safe navigation for operatingsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Feb 20, 2024
1 parent fb6f707 commit 75fe5a5
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 75fe5a5

Please sign in to comment.