try with import field

This commit is contained in:
Shawn Grigson 2023-09-10 18:00:43 -05:00
parent b297e390f7
commit b833ad6d41
1 changed files with 2 additions and 0 deletions

View File

@ -576,6 +576,8 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock],
# Force use of the admin API, and add 'id' to the list of fields
if 'id' not in import_fields:
import_fields.append('id')
if override_private_comment:
import_fields.append('private_comment')
serverblocks = fetch_instance_blocklist(host, token, True, import_fields, scheme)
# # Convert serverblocks to a dictionary keyed by domain name