Skip to content

Commit

Permalink
Keep single update for a stream
Browse files Browse the repository at this point in the history
  • Loading branch information
sinnykumari committed Jul 10, 2019
1 parent 5e56fa0 commit 39f3f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func releaseToStream(releaseArch *ReleaseArch, release Release) StreamArch {

streamArch := StreamArch{
Artifacts: artifacts,
Updates: StreamUpdates{Release: release.Release},
Images: &cloudImages,
}
return streamArch
Expand Down Expand Up @@ -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 != "" {
Expand Down
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39f3f04

Please sign in to comment.