Skip to content

Commit ce0bbdb

Browse files
committed
Merge branch 'issue_241_include_contact_in_registration'
2 parents 447652a + ffad759 commit ce0bbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme_tiny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _poll_until_not(url, pending_statuses, err_msg):
107107

108108
# create account, update contact details (if any), and set the global key identifier
109109
log.info("Registering account...")
110-
reg_payload = {"termsOfServiceAgreed": True}
110+
reg_payload = {"termsOfServiceAgreed": True} if contact is None else {"termsOfServiceAgreed": True, "contact": contact}
111111
account, code, acct_headers = _send_signed_request(directory['newAccount'], reg_payload, "Error registering")
112112
log.info("{0} Account ID: {1}".format("Registered!" if code == 201 else "Already registered!", acct_headers['Location']))
113113
if contact is not None:

0 commit comments

Comments
 (0)