HomeSoftware Heritage

swh_hostname: Fix fqdn computation

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

swh_hostname: Fix fqdn computation

Prior to this commit, the fqdn computation stanza was broken. A return
statement (~ side-effect) within a "foreach" instruction cannot work in ruby.

Use functional approach (filter and select the first result if any). If a
domain is filtered, so great we do as before, use the fqdn as internal_fqdn.
Otherwise, fallback as before to the default domain (.internal.s.o as
internal_fqdn).

Related D1779

Details

Provenance
ardumontAuthored on Jul 30 2019, 5:50 PM
ardumontPushed on Jul 30 2019, 5:58 PM

Commit No Longer Exists

This commit no longer exists in the repository.