use constants for default CDN paths

This commit is contained in:
Malte Poll 2022-11-30 11:48:39 +01:00 committed by Malte Poll
parent 3aa51df74d
commit 9537fb73c0
4 changed files with 6 additions and 4 deletions

View file

@ -314,7 +314,7 @@ func granularityFromVersion(version string) (string, error) {
}
func versionJSONPath(granularity, base string) string {
return path.Join("constellation/v1/updates", stream, granularity, base, imageKind+".json")
return path.Join(constants.CDNUpdatesPath, stream, granularity, base, imageKind+".json")
}
func versionURL(granularity, base string) string {