Skip to content

Commit

Permalink
worker: parse ostree MTLS proxy early
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and ezr-ondrej committed Nov 15, 2024
1 parent d1bf0a7 commit 86f9033
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/osbuild-worker/jobimpl-ostree-resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ func (impl *OSTreeResolveJobImpl) Run(job worker.Job) error {
reqParams.URL = s.URL
reqParams.Ref = s.Ref
if match, err := impl.CompareBaseURL(s.URL); match && err == nil {
reqParams.Proxy = impl.RepositoryMTLSConfig.Proxy.String()
if impl.RepositoryMTLSConfig.Proxy != nil {
reqParams.Proxy = impl.RepositoryMTLSConfig.Proxy.String()
}
reqParams.MTLS = &ostree.MTLS{
CA: impl.RepositoryMTLSConfig.CA,
ClientCert: impl.RepositoryMTLSConfig.MTLSClientCert,
Expand Down

0 comments on commit 86f9033

Please sign in to comment.