mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing domain to authorization matching for ACME v2. (#37558)
This commit is contained in:
parent
0a6b951447
commit
190755ff65
1 changed files with 4 additions and 2 deletions
|
@ -1150,10 +1150,12 @@ class ACMEClient(object):
|
|||
if info['status'] not in [201]:
|
||||
raise ModuleFailException("Error new order: CODE: {0} RESULT: {1}".format(info['status'], result))
|
||||
|
||||
for identifier, auth_uri in zip(result['identifiers'], result['authorizations']):
|
||||
domain = identifier['value']
|
||||
for auth_uri in result['authorizations']:
|
||||
auth_data = simple_get(self.module, auth_uri)
|
||||
auth_data['uri'] = auth_uri
|
||||
domain = auth_data['identifier']['value']
|
||||
if auth_data.get('wildcard', False):
|
||||
domain = '*.{0}'.format(domain)
|
||||
self.authorizations[domain] = auth_data
|
||||
|
||||
self.order_uri = info['location']
|
||||
|
|
Loading…
Reference in a new issue