Skip to content

Commit

Permalink
Merge "[fix] Update Toolforge hostname for version.py"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jan 24, 2023
2 parents 1f4ee0a + b6f921c commit 0890df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_toolforge_hostname() -> Optional[str]:
:return: The hostname of the currently running host,
if it is in Wikimedia Toolforge; otherwise return None.
"""
if socket.getfqdn().endswith('.tools.eqiad.wmflabs'):
if socket.getfqdn().endswith('.tools.eqiad1.wikimedia.cloud'):
return socket.gethostname()
return None

Expand Down

0 comments on commit 0890df8

Please sign in to comment.