Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cben committed Jul 5, 2017
1 parent cc7d0c8 commit 47e16c8
Showing 1 changed file with 5 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 Expand Up @@ -564,6 +567,8 @@ def process_collection_item(item, key)
new_result
end

## Shared parsing methods

def map_labels(model_name, labels)
ContainerLabelTagMapping.map_labels(@label_tag_mapping, model_name, labels)
end
Expand Down

0 comments on commit 47e16c8

Please sign in to comment.