autodns: pop experimental_disclaimer because it's not an actual credential

This commit is contained in:
Alexandre Aubin 2021-09-17 16:12:25 +02:00
parent 93b99635b7
commit c8caabf8f8

View file

@ -547,6 +547,8 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
registrar_credentials = settings registrar_credentials = settings
registrar_credentials.pop("registrar") registrar_credentials.pop("registrar")
if "experimental_disclaimer" in registrar_credentials:
registrar_credentials.pop("experimental_disclaimer")
if not all(registrar_credentials.values()): if not all(registrar_credentials.values()):
raise YunohostValidationError("domain_registrar_is_not_configured", domain=domain) raise YunohostValidationError("domain_registrar_is_not_configured", domain=domain)