Skip to content

Commit 69d0c3b

Browse files
committed
RHINENG-25292: read created time from upload
1 parent 56e7558 commit 69d0c3b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

listener/upload.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ type Host struct {
9393
Groups []inventory.Group `json:"groups,omitempty"`
9494
Tags json.RawMessage `json:"tags,omitempty"`
9595
ParsedYumUpdates *YumUpdates `json:"-"`
96+
Created time.Time `json:"created"`
9697
}
9798

9899
type HostMetadata struct {
@@ -436,6 +437,7 @@ func storeOrUpdateSysPlatform(
436437
VmaasJSON: system.VmaasJSON,
437438
JSONChecksum: system.JSONChecksum,
438439
LastUpload: system.LastUpload,
440+
Created: host.Created,
439441
DisplayName: system.DisplayName,
440442
ReporterID: system.ReporterID,
441443
YumUpdates: system.YumUpdates,

0 commit comments

Comments
 (0)