diff --git a/app/views/katello/api/v2/hosts/base.json.rabl b/app/views/katello/api/v2/hosts/base.json.rabl index f337ab2a016..1469b89a69f 100644 --- a/app/views/katello/api/v2/hosts/base.json.rabl +++ b/app/views/katello/api/v2/hosts/base.json.rabl @@ -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