Skip to content

Commit

Permalink
Merge pull request #110 from wp-media/develop
Browse files Browse the repository at this point in the history
Release mirror IP to WP Rocket IPs
  • Loading branch information
MathieuLamiot authored Jul 29, 2024
2 parents 58c61aa + a31699e commit a49d181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/handlers/ServerListHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a49d181

Please sign in to comment.