Skip to content

Commit

Permalink
comments about return values
Browse files Browse the repository at this point in the history
  • Loading branch information
cben committed Jul 4, 2017
1 parent 4a5b2a0 commit fbaa2f1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def ems_inv_to_hashes(inventory, _options = Config::Options.new)
get_services(inventory)
get_component_statuses(inventory)
EmsRefresh.log_inv_debug_trace(@data, "data:")

# Returning a hash triggers save_inventory_container code path.
@data
end

Expand All @@ -57,6 +59,7 @@ def ems_inv_to_inv_collections(ems, inventory, _options = Config::Options.new)
get_container_images_graph
get_container_image_registries_graph

# Returning an array triggers ManagerRefresh::SaveInventory code path.
@inv_collections.values
end

Expand Down

0 comments on commit fbaa2f1

Please sign in to comment.