Lua: Fix ExternalName services without endpoints. (#13429)
Co-authored-by: Neer Friedman <neerfri@gmail.com>
This commit is contained in:
parent
8826c7106a
commit
85d9f16a30
2 changed files with 38 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ local function get_implementation(backend)
|
|||
end
|
||||
|
||||
local function resolve_external_names(original_backend)
|
||||
if not original_backend.endpoints or
|
||||
#original_backend.endpoints == 0 then
|
||||
return original_backend
|
||||
end
|
||||
local backend = util.deepcopy(original_backend)
|
||||
local endpoints = {}
|
||||
for _, endpoint in ipairs(backend.endpoints) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue