mirror of
https://github.com/outbackdingo/incus-os.git
synced 2026-01-27 10:19:24 +00:00
Merge pull request #255 from stgraber/main
incus-osd/api/images: Replace Channel with Channels
This commit is contained in:
@@ -15,7 +15,7 @@ type UpdateFull struct {
|
||||
type Update struct {
|
||||
Format string `json:"format"`
|
||||
|
||||
Channel string `json:"channel"`
|
||||
Channels []string `json:"channel"`
|
||||
Files []UpdateFile `json:"files"`
|
||||
Origin string `json:"origin"`
|
||||
PublishedAt time.Time `json:"published_at"`
|
||||
|
||||
@@ -83,7 +83,7 @@ func do(ctx context.Context) error {
|
||||
metaUpdate := apiupdate.Update{
|
||||
Format: "1.0",
|
||||
|
||||
Channel: updateChannel,
|
||||
Channels: []string{updateChannel},
|
||||
Files: []apiupdate.UpdateFile{},
|
||||
Origin: updateOrigin,
|
||||
PublishedAt: time.Now(),
|
||||
|
||||
Reference in New Issue
Block a user