app/models/katello/host/info_provider.rb in katello-4.14.0.rc3 vs app/models/katello/host/info_provider.rb in katello-4.14.0
- old
+ new
@@ -33,11 +33,14 @@
info
end
def content_view_info(content_view_environment)
+ return {} if content_view_environment.blank?
+
content_view = content_view_environment.content_view
return {} if content_view.blank?
+
{
'label' => content_view.try(:label),
'latest-version' => content_view.try(:latest_version),
'version' => content_version(content_view_environment).try(:version),
'published' => content_version(content_view_environment).try(:created_at).try(:time).to_s,