From 679028bb8e86bf0cbd9cf263fb5895e5db6e75be Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 11 Feb 2022 19:50:58 +0100 Subject: [PATCH] cloudapi: copy all Repository fields to RepoConfig --- internal/cloudapi/v2/v2.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/cloudapi/v2/v2.go b/internal/cloudapi/v2/v2.go index dd22e16a3..b3732c9ab 100644 --- a/internal/cloudapi/v2/v2.go +++ b/internal/cloudapi/v2/v2.go @@ -1190,5 +1190,15 @@ func genRepoConfig(repo Repository) (*rpmmd.RepoConfig, error) { return nil, HTTPError(ErrorInvalidRepository) } + if repo.CheckGpg != nil { + repoConfig.CheckGPG = *repo.CheckGpg + } + if repo.GpgKey != nil { + repoConfig.GPGKey = *repo.GpgKey + } + if repo.IgnoreSsl != nil { + repoConfig.IgnoreSSL = *repo.IgnoreSsl + } + return repoConfig, nil }