Skip to content

Commit

Permalink
[graph refresh] Fix refresh crash on Service without Endpoints
Browse files Browse the repository at this point in the history
Avoids "undefined method `each' for nil:NilClass"
https://bugzilla.redhat.com/show_bug.cgi?id=1558209
  • Loading branch information
cben committed Mar 21, 2018
1 parent 7350379 commit b5af5e0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -541,7 +541,7 @@ def get_endpoints_and_services_graph(inv)
tags = h.delete(:tags)
children = h.extract!(:container_service_port_configs)

h[:container_groups] = cgs_by_namespace_and_name.fetch_path(h[:namespace], h[:name])
h[:container_groups] = cgs_by_namespace_and_name.fetch_path(h[:namespace], h[:name]) || []

container_service = collection.build(h)

Expand Down

0 comments on commit b5af5e0

Please sign in to comment.