mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-07 00:35:17 -04:00
use constants for default CDN paths
This commit is contained in:
parent
3aa51df74d
commit
9537fb73c0
4 changed files with 6 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue