Skip to content

Commit

Permalink
Parse the networkFolder under a datacenter
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Feb 7, 2019
1 parent c80948b commit 9006a06
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 @@ -1271,7 +1271,7 @@ def self.datacenter_inv_to_hashes(inv, result, result_uids)
inv.each do |mor, data|
mor = data['MOR'] # Use the MOR directly from the data since the mor as a key may be corrupt

child_mors = get_mors(data, 'hostFolder') + get_mors(data, 'vmFolder') + get_mors(data, 'datastoreFolder')
child_mors = get_mors(data, 'hostFolder') + get_mors(data, 'vmFolder') + get_mors(data, 'datastoreFolder') + get_mors(data, 'networkFolder')

new_result = {
:type => Datacenter.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ module ManageIQ::Providers::Vmware::InfraManager::SelectorSpec
"hostFolder",
"hostFolder.ManagedObjectReference",
"name",
"networkFolder",
"networkFolder.ManagedObjectReference",
"parent", # Used by ManageIQ::Providers::Vmware::InfraManager::RefreshParser::Filter#ems_metadata_inv_by_*
"vmFolder",
"vmFolder.ManagedObjectReference",
Expand Down

0 comments on commit 9006a06

Please sign in to comment.