@@ -155,27 +155,21 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
155
155
remove_repo_conf_file repo_name ;
156
156
let origin = Db.Repository. get_origin ~__context ~self in
157
157
158
- let ( binary_url
159
- , source_url
160
- , repo_gpgcheck
161
- , use_proxy
162
- , client_auth
163
- , server_auth ) =
158
+ let binary_url, source_url, use_proxy, client_auth, server_auth =
164
159
match origin with
165
160
| `remote ->
166
161
let plugin = " accesstoken" in
167
162
( Db.Repository. get_binary_url ~__context ~self
168
163
, Some (Db.Repository. get_source_url ~__context ~self )
169
164
, true
170
- , true
171
165
, CdnTokenAuth {token_id; token; plugin}
172
166
, DefaultAuth
173
167
)
174
168
| `bundle ->
175
169
let uri =
176
170
Uri. make ~scheme: " file" ~path: ! Xapi_globs. bundle_repository_dir ()
177
171
in
178
- (Uri. to_string uri, None , true , false , NoAuth , NoAuth )
172
+ (Uri. to_string uri, None , false , NoAuth , NoAuth )
179
173
| `remote_pool ->
180
174
let cert = Db.Repository. get_certificate ~__context ~self in
181
175
let repo_binary_url = Db.Repository. get_binary_url ~__context ~self in
@@ -215,7 +209,6 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
215
209
let plugin = " xapitoken" in
216
210
( repo_binary_url
217
211
, None
218
- , false
219
212
, true
220
213
, PoolExtHostAuth {xapi_token; plugin}
221
214
, StunnelClientProxyAuth
@@ -230,7 +223,7 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
230
223
s
231
224
in
232
225
let write_initial_yum_config ~binary_url =
233
- write_yum_config ~source_url ~binary_url ~repo_gpgcheck ~gpgkey_path
226
+ write_yum_config ~source_url ~binary_url ~repo_gpgcheck: true ~gpgkey_path
234
227
~repo_name
235
228
in
236
229
Xapi_stdext_pervasives.Pervasiveext. finally
0 commit comments