Skip to content

Commit e02d52a

Browse files
sbernhardm-bucher
authored andcommitted
Add a check OS release name
1 parent db519b9 commit e02d52a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/katello/host/content_facet.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def applicable_deb_errata_uuids
152152
"INNER JOIN #{Katello::InstalledDeb.table_name} ON #{Katello::InstalledDeb.table_name}.name = #{Katello::ErratumDebPackage.table_name}.name",
153153
"INNER JOIN #{Katello::HostInstalledDeb.table_name} ON #{Katello::HostInstalledDeb.table_name}.installed_deb_id = #{Katello::InstalledDeb.table_name}.id")
154154
.where("deb_version_cmp(#{Katello::ErratumDebPackage.table_name}.version, #{Katello::InstalledDeb.table_name}.version) > 0")
155+
.where("#{Katello::ErratumDebPackage.table_name}.release": self.host.operatingsystem.release_name)
155156
.where("#{Katello::HostInstalledDeb.table_name}.host_id": self.host.id)
156157
.where("#{Katello::RepositoryErratum.table_name}.repository_id" => repositories)
157158
.distinct.pluck(:uuid)

0 commit comments

Comments
 (0)