...
 
Commits (2)
......@@ -13,7 +13,7 @@ stages:
stage: lets_encrypt_staging
before_script:
- apt-get update && apt-get install -y --no-install-recommends
python3-dnspython python3-requests python3-configargparse python3-coverage
python3-minimal python3-dnspython python3-requests python3-coverage
script:
- python3-coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny
tests.test_acme_account_rollover tests.test_acme_account_deactivate
......@@ -29,7 +29,8 @@ stages:
compile:
extends: .check
before_script:
- apt-get update && apt-get install -y --no-install-recommends python3
- apt-get update && apt-get install -y --no-install-recommends
python3-minimal
script:
- python3 -m py_compile acme_dns_tiny.py tools/*.py tests/*.py
......@@ -37,7 +38,7 @@ lint:
extends: .check
before_script:
- apt-get update && apt-get install -y --no-install-recommends pylint3
python3-dnspython python3-requests python3-configargparse python3-coverage
python3-minimal python3-dnspython python3-requests
script:
- pylint3 acme_dns_tiny.py
- pylint3 tools/acme_account_deactivate.py
......
......@@ -130,7 +130,7 @@ def _send_signed_request(url, payload, acme_config):
def _acme_register_account(config, acme_config):
LOG.info("Try to register ACME Account to get the account key identifier.")
account_request = {}
terms_service = acme_config.get("meta", {}).get("termsOfService", "")
terms_service = acme_config["directory"].get("meta", {}).get("termsOfService", "")
if terms_service:
account_request["termsOfServiceAgreed"] = True
LOG.warning(
......