Skip to content
Permalink
Browse files
fix: panic when --secondary-repo or --cache-repo used
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed May 16, 2022
1 parent 1c8322c commit c59f1f9102a0fba364ecaee430a662c9a68c9e6d
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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)
@@ -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)

0 comments on commit c59f1f9

Please sign in to comment.