shortened pull #260

This commit is contained in:
Daniel Roesler
2021-08-21 16:12:45 -05:00
parent 907bba2644
commit 0d97a2d35d
+1 -1
View File
@@ -110,7 +110,7 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA, disable_check
log.info("Registering account...")
reg_payload = {"termsOfServiceAgreed": True}
account, code, acct_headers = _send_signed_request(directory['newAccount'], reg_payload, "Error registering")
log.info("Registered! Account ID: {0}".format(acct_headers['Location']) if code == 201 else "Already registered! Account ID: {0}".format(acct_headers['Location']))
log.info("{0} Account ID: {1}".format("Registered!" if code == 201 else "Already registered!", acct_headers['Location']))
if contact is not None:
account, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details")
log.info("Updated contact details:\n{0}".format("\n".join(account['contact'])))