Skip to content

Commit

Permalink
inventory collections fix: project labels (TODO: needs tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
cben committed Jul 16, 2017
1 parent 3621474 commit 15fd322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def initialize_inventory_collections(ems)
:association => :container_projects,
:secondary_refs => {:by_name => [:name]},
)
initialize_custom_attributes_collections(ems.container_projects, %w(labels additional_attributes))

@inv_collections[:container_quotas] = ::ManagerRefresh::InventoryCollection.new(
:model_class => ContainerQuota,
:parent => ems,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def get_namespaces_graph(inv)

container_project = collection.build(h)

get_custom_attributes_graph(container_project, custom_attrs)
get_custom_attributes_graph(container_project, custom_attrs) # TODO: untested
end
end

Expand Down

0 comments on commit 15fd322

Please sign in to comment.