From 35c1ce01036288cca4ffbb0d39a00ff55cd3db26 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Tue, 14 Mar 2023 13:38:55 +0000 Subject: [PATCH] hostuserutil: permit arpa address * The arpa address returned by `socket.getfqdn` on Mac OS is different with Python 3.9 than 3.7 (conda-forge). --- cylc/flow/hostuserutil.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cylc/flow/hostuserutil.py b/cylc/flow/hostuserutil.py index 34e033b2d7b..8eadbdb574f 100644 --- a/cylc/flow/hostuserutil.py +++ b/cylc/flow/hostuserutil.py @@ -120,10 +120,11 @@ def _get_host_info(self, target=None): target = socket.getfqdn() if ( IS_MAC_OS - and target == ( + and target in { '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.' - '0.0.0.0.0.0.ip6.arpa' - ) + '0.0.0.0.0.0.ip6.arpa', + '1.0.0.127.in-addr.arpa' + } ): # Python's socket bindings don't play nicely with mac os # so by default we get the above ip6.arpa address from