mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix dangerous default args. (#29839)
This commit is contained in:
@@ -407,13 +407,15 @@ class ACMEAccount(object):
|
||||
|
||||
return result, info
|
||||
|
||||
def _new_reg(self, contact=[]):
|
||||
def _new_reg(self, contact=None):
|
||||
'''
|
||||
Registers a new ACME account. Returns True if the account was
|
||||
created and False if it already existed (e.g. it was not newly
|
||||
created)
|
||||
https://tools.ietf.org/html/draft-ietf-acme-acme-02#section-6.3
|
||||
'''
|
||||
contact = [] if contact is None else contact
|
||||
|
||||
if self.uri is not None:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user