5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 06:51:42 +00:00

fix: modificado metodo Gateways_urls para que devuelva solamente links en deploy_distributed_press.rb #14550

This commit is contained in:
jazzari 2023-12-07 17:24:04 +01:00
parent 2387da24e1
commit c66a7660c1

View file

@ -87,7 +87,7 @@ class DeployDistributedPress < Deploy
# @return [Array]
def gateway_urls
remote_info.dig(:distributed_press, :links)&.values&.map do |protocol|
[ protocol[:link], protocol[:gateway] ]
[ protocol[:link]]
end&.flatten&.compact&.select do |link|
link.include? '://'
end || []