internal/rpmmd: change ignoressl to pointer
Change the `IgnoreSSL` field in `rpmmd.RepoConfig` to a pointer. This will be later used to configure the `SSLVerify` field in the yum repo stage.
This commit is contained in:
parent
173de3eba4
commit
ce299dfa0e
13 changed files with 89 additions and 82 deletions
|
|
@ -371,7 +371,7 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
}
|
||||
|
||||
if repo.SslVerify != nil {
|
||||
repoCustomization.SSLVerify = *repo.SslVerify
|
||||
repoCustomization.SSLVerify = repo.SslVerify
|
||||
}
|
||||
|
||||
if repo.Priority != nil {
|
||||
|
|
@ -1441,7 +1441,7 @@ func genRepoConfig(repo Repository) (*rpmmd.RepoConfig, error) {
|
|||
repoConfig.GPGKeys = []string{*repo.Gpgkey}
|
||||
}
|
||||
if repo.IgnoreSsl != nil {
|
||||
repoConfig.IgnoreSSL = *repo.IgnoreSsl
|
||||
repoConfig.IgnoreSSL = repo.IgnoreSsl
|
||||
}
|
||||
|
||||
if repo.CheckGpg != nil {
|
||||
|
|
@ -1451,7 +1451,7 @@ func genRepoConfig(repo Repository) (*rpmmd.RepoConfig, error) {
|
|||
repoConfig.GPGKeys = []string{*repo.Gpgkey}
|
||||
}
|
||||
if repo.IgnoreSsl != nil {
|
||||
repoConfig.IgnoreSSL = *repo.IgnoreSsl
|
||||
repoConfig.IgnoreSSL = repo.IgnoreSsl
|
||||
}
|
||||
if repo.CheckRepoGpg != nil {
|
||||
repoConfig.CheckRepoGPG = repo.CheckRepoGpg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue