Navigation Menu

Skip to content

Commit

Permalink
fix: panic when --secondary-repo or --cache-repo used
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed May 16, 2022
1 parent 1c8322c commit c59f1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/werf/common/common.go
Expand Up @@ -966,7 +966,7 @@ func GetCacheStagesStorageList(containerBackend container_backend.ContainerBacke
var res []storage.StagesStorage

for _, address := range GetCacheStagesStorage(cmdData) {
repoData := NewRepoData("cache-repo", RepoDataOptions{})
repoData := NewRepoData("cache-repo", RepoDataOptions{OnlyAddress: true})
repoData.Address = &address

storage, err := repoData.CreateStagesStorage(containerBackend, *cmdData.InsecureRegistry, *cmdData.SkipTlsVerifyRegistry)
Expand All @@ -989,7 +989,7 @@ func GetSecondaryStagesStorageList(stagesStorage storage.StagesStorage, containe
}

for _, address := range GetSecondaryStagesStorage(cmdData) {
repoData := NewRepoData("secondary-repo", RepoDataOptions{})
repoData := NewRepoData("secondary-repo", RepoDataOptions{OnlyAddress: true})
repoData.Address = &address

storage, err := repoData.CreateStagesStorage(containerBackend, *cmdData.InsecureRegistry, *cmdData.SkipTlsVerifyRegistry)
Expand Down

0 comments on commit c59f1f9

Please sign in to comment.