mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
update order object with returned authorizations
This commit is contained in:
parent
02b56bd7f3
commit
1f7b35e320
2 changed files with 4 additions and 3 deletions
|
|
@ -261,9 +261,8 @@ class Client(object):
|
|||
if orderr is None:
|
||||
orderr = self.acme.new_order(csr.data)
|
||||
authzr = self.auth_handler.handle_authorizations(orderr)
|
||||
else:
|
||||
authzr = orderr.authorizations
|
||||
|
||||
orderr = orderr.update(authorizations=authzr)
|
||||
authzr = orderr.authorizations
|
||||
|
||||
certr = self.acme.request_issuance(
|
||||
jose.ComparableX509(
|
||||
|
|
@ -320,6 +319,7 @@ class Client(object):
|
|||
|
||||
orderr = self.acme.new_order(csr.data)
|
||||
authzr = self.auth_handler.handle_authorizations(orderr, self.config.allow_subset_of_names)
|
||||
orderr = orderr.update(authorizations=authzr)
|
||||
auth_domains = set(a.body.identifier.value for a in authzr)
|
||||
successful_domains = [d for d in domains if d in auth_domains]
|
||||
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@ class ClientTest(ClientTestCommon):
|
|||
authzr = authzr_ret or self._authzr_from_domains(self.eg_domains)
|
||||
|
||||
self.eg_order.authorizations = authzr
|
||||
self.eg_order.update().authorizations = authzr
|
||||
self.client.auth_handler.handle_authorizations.return_value = authzr
|
||||
|
||||
with test_util.patch_get_utility():
|
||||
|
|
|
|||
Loading…
Reference in a new issue