Skip to content

Commit

Permalink
Add a check OS release name
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard authored and m-bucher committed Jul 1, 2019
1 parent db519b9 commit e02d52a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/katello/host/content_facet.rb
Expand Up @@ -152,6 +152,7 @@ def applicable_deb_errata_uuids
"INNER JOIN #{Katello::InstalledDeb.table_name} ON #{Katello::InstalledDeb.table_name}.name = #{Katello::ErratumDebPackage.table_name}.name",
"INNER JOIN #{Katello::HostInstalledDeb.table_name} ON #{Katello::HostInstalledDeb.table_name}.installed_deb_id = #{Katello::InstalledDeb.table_name}.id")
.where("deb_version_cmp(#{Katello::ErratumDebPackage.table_name}.version, #{Katello::InstalledDeb.table_name}.version) > 0")
.where("#{Katello::ErratumDebPackage.table_name}.release": self.host.operatingsystem.release_name)
.where("#{Katello::HostInstalledDeb.table_name}.host_id": self.host.id)
.where("#{Katello::RepositoryErratum.table_name}.repository_id" => repositories)
.distinct.pluck(:uuid)
Expand Down

0 comments on commit e02d52a

Please sign in to comment.