Skip to content

Commit

Permalink
Merge pull request #262 from oliver-sanders/2689
Browse files Browse the repository at this point in the history
portability: patch mac os dns issues
  • Loading branch information
oliver-sanders authored Jul 15, 2021
2 parents f38583b + 163ff8f commit 760c189
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 760c189

Please sign in to comment.