From e0c4655c6c06f6fd24adddea7371c6d68615c54c Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Tue, 7 Jan 2025 11:18:12 -0600 Subject: ddclient: T6981: Remove defunct woima Since woima (woima.fi) has been shut down, we need to remove any configuration path that refers to woima. Apply migration to remove woima from dynamic DNS service configurations. --- src/migration-scripts/dns-dynamic/4-to-5 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/migration-scripts') diff --git a/src/migration-scripts/dns-dynamic/4-to-5 b/src/migration-scripts/dns-dynamic/4-to-5 index 3a055a122..3873c00af 100644 --- a/src/migration-scripts/dns-dynamic/4-to-5 +++ b/src/migration-scripts/dns-dynamic/4-to-5 @@ -15,6 +15,7 @@ # T6981: # - remove "service dns dynamic name protocol googledomains" +# - remove "service dns dynamic name protocol woima" # - remove "service dns dynamic name address web url ..." # when url is https://domains.google.com/* @@ -33,11 +34,11 @@ def migrate(config: ConfigTree) -> None: service_path = base_path + [service] - # Remove configurations using protocol 'googledomains' + # Remove configurations using protocol 'googledomains' and 'woima' if config.exists(service_path + ['protocol']): protocol = config.return_value(service_path + ['protocol']) - if protocol == 'googledomains': - Warning(f'Removing {service} using protocol "googledomains" because the service has been shutdown') + if protocol in ['googledomains', 'woima']: + Warning(f'Removing {service} using protocol "{protocol}" because the service has been shutdown') config.delete(service_path) # Look for 'address web' with 'url' set to 'googledomains' or 'https://domains.google.com' -- cgit v1.2.3