Skip to content

Commit

Permalink
portability: patch mac os dns issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Jul 15, 2021
1 parent 375903f commit 163ff8f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,6 @@ your ``$PATH``, follow the instructions in the ``brew install`` output.
``bash``). You do not need to change this but be aware that Cylc uses
``bash`` which has a subtly different syntax.

.. warning::

.. TODO - Get rid of this!!!!!!!!
Cylc currently has DNS issues with the latest versions of Mac OS, to get
around them the following diff must be made to the installed source code:

.. code-block:: diff
diff --git a/cylc/flow/hostuserutil.py b/cylc/flow/hostuserutil.py
index 1b0bfc37d..73d5c9f98 100644
--- a/cylc/flow/hostuserutil.py
+++ b/cylc/flow/hostuserutil.py
@@ -113,7 +113,7 @@ class HostUtil(object):
"""Return the extended info of the current host."""
if target not in self._host_exs:
if target is None:
- target = socket.getfqdn()
+ target = socket.gethostname()
try:
self._host_exs[target] = socket.gethostbyname_ex(target)
except IOError as exc:
.. warning::

For Mac OS Versions 10.15.0 (Catalina) and higher SSH is disabled by
Expand Down

0 comments on commit 163ff8f

Please sign in to comment.