Skip to content

Commit af7359f

Browse files
committed
RHINENG-20474: don't mark uploaded system as stale
let job mark it later
1 parent dfcd58e commit af7359f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

listener/upload.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ func updateSystemPlatform(tx *gorm.DB, accountID int, host *Host,
379379
colsToUpdate = append(colsToUpdate, "template_id")
380380
}
381381

382-
staleWarning := host.StaleWarningTimestamp.Time()
383382
updatesReqJSONString := string(updatesReqJSON)
384383
systemPlatform := models.SystemPlatform{
385384
InventoryID: inventoryID,
@@ -391,7 +390,6 @@ func updateSystemPlatform(tx *gorm.DB, accountID int, host *Host,
391390
StaleTimestamp: host.StaleTimestamp.Time(),
392391
StaleWarningTimestamp: host.StaleWarningTimestamp.Time(),
393392
CulledTimestamp: host.CulledTimestamp.Time(),
394-
Stale: staleWarning != nil && staleWarning.Before(time.Now()),
395393
ReporterID: getReporterID(host.Reporter),
396394
YumUpdates: yumUpdates.GetRawParsed(),
397395
YumChecksum: utils.EmptyToNil(&yumChecksum),

0 commit comments

Comments
 (0)