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 5, 2019
1 parent afceca9 commit 4b9ec6b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,16 @@ 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)
)
end

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

0 comments on commit 4b9ec6b

Please sign in to comment.