diff --git a/app/models/katello/host/content_facet.rb b/app/models/katello/host/content_facet.rb index 65aacf0e8a0..64bd9fe936c 100644 --- a/app/models/katello/host/content_facet.rb +++ b/app/models/katello/host/content_facet.rb @@ -298,19 +298,26 @@ def available_releases end def katello_agent_installed? - self.host.installed_packages.where("#{Katello::InstalledPackage.table_name}.name" => 'katello-agent').any? + self.host.installed_packages.where("#{Katello::InstalledPackage.table_name}.name" => 'katello-agent').any? || + self.host.installed_debs.where("#{Katello::InstalledDeb.table_name}.name" => 'katello-agent').any? end def tracer_installed? self.host.installed_packages.where("#{Katello::InstalledPackage.table_name}.name" => [ "python-#{HOST_TOOLS_TRACER_PACKAGE_NAME}", "python3-#{HOST_TOOLS_TRACER_PACKAGE_NAME}", - HOST_TOOLS_TRACER_PACKAGE_NAME ]).any? + HOST_TOOLS_TRACER_PACKAGE_NAME ]).any? || + self.host.installed_debs.where("#{Katello::InstalledDeb.table_name}.name" => [ "python-#{HOST_TOOLS_TRACER_PACKAGE_NAME}", + "python3-#{HOST_TOOLS_TRACER_PACKAGE_NAME}", + HOST_TOOLS_TRACER_PACKAGE_NAME ]).any? end def host_tools_installed? host.installed_packages.where("#{Katello::InstalledPackage.table_name}.name" => [ "python-#{HOST_TOOLS_PACKAGE_NAME}", "python3-#{HOST_TOOLS_PACKAGE_NAME}", - HOST_TOOLS_PACKAGE_NAME ]).any? + HOST_TOOLS_PACKAGE_NAME ]).any? || + host.installed_debs.where("#{Katello::InstalledDeb.table_name}.name" => [ "python-#{HOST_TOOLS_PACKAGE_NAME}", + "python3-#{HOST_TOOLS_PACKAGE_NAME}", + HOST_TOOLS_PACKAGE_NAME ]).any? end def update_errata_status