Prepare NPM references and mutation API
This commit is contained in:
@@ -121,12 +121,6 @@ def _normalize_proxy_host(
|
||||
if not forward_host:
|
||||
raise RuntimeError(f"{label} has no forward_host")
|
||||
|
||||
certificate_id = payload.get("certificate_id")
|
||||
if certificate_id in (None, "", 0, "0"):
|
||||
certificate_local_key = None
|
||||
else:
|
||||
certificate_local_key = str(certificate_id)
|
||||
|
||||
normalized_payload: dict[str, Any] = {
|
||||
"domain_names": list(domains),
|
||||
"forward_scheme": forward_scheme,
|
||||
@@ -135,7 +129,6 @@ def _normalize_proxy_host(
|
||||
payload.get("forward_port"),
|
||||
label,
|
||||
),
|
||||
"certificate_local_key": certificate_local_key,
|
||||
}
|
||||
for field in _PROXY_BOOLEAN_FIELDS:
|
||||
normalized_payload[field] = _normalized_bool(
|
||||
|
||||
Reference in New Issue
Block a user