diff --git a/modules/http_host/http_host_lib/nginx_config_gen.py b/modules/http_host/http_host_lib/nginx_config_gen.py index 7706f83..94e3e65 100644 --- a/modules/http_host/http_host_lib/nginx_config_gen.py +++ b/modules/http_host/http_host_lib/nginx_config_gen.py @@ -38,7 +38,7 @@ def write_nginx_config(): print(f'test with:\n{curl_help_str}') -def process_domain(domain_data): +def process_domain(domain_data) -> list: if domain_data['cert'] == 'upload': domain_data['cert_file'] = config.nginx_certs_dir / f'{domain_data["slug"]}.cert' domain_data['key_file'] = config.nginx_certs_dir / f'{domain_data["slug"]}.key' @@ -50,6 +50,8 @@ def process_domain(domain_data): return create_nginx_conf(domain_data) + return [] + def create_nginx_conf(domain_data: dict): dynamic_block_lines, curl_help = dynamic_blocks(domain_data) diff --git a/modules/http_host/http_host_lib/sync.py b/modules/http_host/http_host_lib/sync.py index 207a72a..cf69e3f 100644 --- a/modules/http_host/http_host_lib/sync.py +++ b/modules/http_host/http_host_lib/sync.py @@ -30,7 +30,7 @@ def full_sync(force=False): btrfs_downloaded += download_area_version(area='monaco', version='deployed') # download latest and deployed planet - if not config.ofm_config.get('skip_planet'): + if not config.json_config.get('skip_planet'): btrfs_downloaded += download_area_version(area='planet', version='latest') btrfs_downloaded += download_area_version(area='planet', version='deployed')