diff --git a/appliances/lib/artifacts/vnf/one-vnf/lib/appliance/plugin/haproxy.rb b/appliances/lib/artifacts/vnf/one-vnf/lib/appliance/plugin/haproxy.rb index 3c62f439..9199cfb5 100644 --- a/appliances/lib/artifacts/vnf/one-vnf/lib/appliance/plugin/haproxy.rb +++ b/appliances/lib/artifacts/vnf/one-vnf/lib/appliance/plugin/haproxy.rb @@ -543,8 +543,13 @@ def refresh_dynamic_backend_servers(lbs, static_backend_servers, dynamic_backend found_roles = oneflow_service['SERVICE']['roles'] found_roles.each do |role| role['nodes'].each do |node| - _vmid = node['vm_info']['VM']['ID'] - found_vms.append(_vmid.to_i) if !_vmid.to_s.strip.empty? + vmid = begin + node['vm_info']['VM']['ID'] + rescue StandardError + '' + end + + found_vms.append(vmid.to_i) unless vmid.to_s.strip.empty? end end