Skip to content

Commit

Permalink
fix dupulicate assets url
Browse files Browse the repository at this point in the history
Signed-off-by: YZ775 <yuzuki-mimura@cybozu.co.jp>
  • Loading branch information
YZ775 committed Dec 4, 2023
1 parent 1d898ce commit cfd98b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/etcd/asset_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ RETRY:
return nil
}

for _, url := range a.URLs {
if url == d.myURL("/api/v1/assets", a.Name) {
return nil
}
}

a.URLs = append(a.URLs, d.myURL("/api/v1/assets", a.Name))
key := KeyAssets + a.Name

Expand Down

0 comments on commit cfd98b6

Please sign in to comment.