Skip to content

Commit

Permalink
RHINENG-9505: vmaas updates for template system are applicable
Browse files Browse the repository at this point in the history
if a systems has template
updates reported by yum_updates are installable
updates reported by vmaas are applicable
  • Loading branch information
MichaelMraka committed Sep 5, 2024
1 parent d3ad79b commit 20f8483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluator/evaluate.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ func getUpdatesData(ctx context.Context, system *models.SystemPlatform) (*vmaas.
utils.LogWarn("Vmaas response error, continuing with yum updates only", vmaasErr.Error())
}

if system.SatelliteManaged {
// satellite managed systems has vmaas updates APPLICABLE instead of INSTALLABLE
if system.SatelliteManaged || system.TemplateID != nil {
// satellite managed systems and systems using template has vmaas updates APPLICABLE instead of INSTALLABLE
mergedUpdateList := vmaasData.GetUpdateList()
for nevra := range mergedUpdateList {
(*mergedUpdateList[nevra]).SetUpdatesInstallability(APPLICABLE)
Expand Down

0 comments on commit 20f8483

Please sign in to comment.