From 39f3f045e95a250cd49ee31ec30e38df65d208ac Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Wed, 10 Jul 2019 15:57:39 +0530 Subject: [PATCH] Keep single update for a stream Disucssed at https://github.com/coreos/fedora-coreos-tracker/pull/207 --- main.go | 2 +- stream.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7a2f489..bdcea3f 100644 --- a/main.go +++ b/main.go @@ -134,7 +134,6 @@ func releaseToStream(releaseArch *ReleaseArch, release Release) StreamArch { streamArch := StreamArch{ Artifacts: artifacts, - Updates: StreamUpdates{Release: release.Release}, Images: &cloudImages, } return streamArch @@ -225,6 +224,7 @@ func run() error { Stream: release.Stream, Metadata: Metadata{LastModified: time.Now().UTC().Format(time.RFC3339)}, Architectures: streamArch, + Updates: StreamUpdates{Release: release.Release}, } if overrideFilename != "" { diff --git a/stream.go b/stream.go index 4f6a3cc..fff1154 100644 --- a/stream.go +++ b/stream.go @@ -5,13 +5,13 @@ type StreamMetadata struct { Stream string `json:"stream"` Metadata Metadata `json:"metadata"` Architectures map[string]*StreamArch `json:"architectures"` + Updates StreamUpdates `json:"updates"` } // StreamArch release details for x86_64 architetcure type StreamArch struct { Artifacts StreamArtifacts `json:"artifacts"` Images *StreamImages `json:"images,omitempty"` - Updates StreamUpdates `json:"updates"` } // StreamArtifacts contains shipped artifacts list