Skip to content

Commit

Permalink
Add inventory collections for graph refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Feb 4, 2019
1 parent 4cbe4f1 commit 9ee3362
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,17 @@ def host_switches
)
end

def switches
def host_virtual_switches
add_properties(
:manager_ref => %i(uid_ems), # TODO looks like switches are using a bad association, this one is defined as through hosts
:manager_ref => %i(host uid_ems),
:parent_inventory_collections => %i(hosts)
)
add_common_default_values
end

def distributed_virtual_switches
add_properties(
:manager_ref => %i(uid_ems)
)
add_common_default_values
end
Expand Down

0 comments on commit 9ee3362

Please sign in to comment.