Skip to content

Commit

Permalink
Fixes #37178 - use safe navigation for operatingsystem (#10897)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz authored Feb 28, 2024
1 parent 7458f70 commit 664488d
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 664488d

Please sign in to comment.