From c0b128926af581e5bce455670065c1ce8492d2a0 Mon Sep 17 00:00:00 2001 From: Mathieu Lamiot Date: Mon, 29 Jul 2024 16:30:49 +0200 Subject: [PATCH] List OVH mirror as well as workers in IP list --- sources/handlers/ServerListHandler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/handlers/ServerListHandler.py b/sources/handlers/ServerListHandler.py index f35157c..d0a980f 100644 --- a/sources/handlers/ServerListHandler.py +++ b/sources/handlers/ServerListHandler.py @@ -145,7 +145,7 @@ def generate_wp_rocket_ips_human_readable(self, app_context): ovh_ipv6 = '' for server_name in all_server_list: display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name) - if 'worker' in display_name: + if 'worker' in display_name or 'mirror' in display_name: server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name) if server_ips is None: continue @@ -191,7 +191,7 @@ def generate_wp_rocket_ipv4_machine_readable(self, app_context): ovh_ipv4 = '' for server_name in all_server_list: display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name) - if 'worker' in display_name: + if 'worker' in display_name or 'mirror' in display_name: server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name) if server_ips is None: continue @@ -213,7 +213,7 @@ def generate_wp_rocket_ipv6_machine_readable(self, app_context): ovh_ipv6 = '' for server_name in all_server_list: display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name) - if 'worker' in display_name: + if 'worker' in display_name or 'mirror' in display_name: server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name) if server_ips is None: continue