Update src/dns.py

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
This commit is contained in:
theo-is-taken 2022-07-05 09:54:23 +02:00 committed by GitHub
parent 273c10f17d
commit ab37617f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -624,7 +624,8 @@ def _get_registar_settings(domain):
@is_unit_operation()
def domain_dns_push(operation_logger, domains, dry_run=False, force=False, purge=False):
if type(domains).__name__!="list": # If we provide only a domain as an argument
# If we provide only a domain as an argument
if isinstance(domains, str):
domains = [domains]
for domain in domains:
try: