Skip to content

Commit

Permalink
Merge pull request #17324 from agrare/fix_host_parent_inventory_colle…
Browse files Browse the repository at this point in the history
…ctions

Fix infra inventory collections for targeted refresh
  • Loading branch information
chessbyte authored Apr 23, 2018
2 parents 9f8c439 + 61bd61d commit a68f1f2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def host_networks(extra_attributes = {})
:model_class => ::Network,
:manager_ref => %i(hardware ipaddress),
:association => :host_networks,
:parent_inventory_collections => [:hosts],
:inventory_object_attributes => %i(
description
hostname
Expand Down Expand Up @@ -60,6 +61,7 @@ def host_hardwares(extra_attributes = {})
:model_class => ::Hardware,
:manager_ref => [:host],
:association => :host_hardwares,
:parent_inventory_collections => [:hosts],
:inventory_object_attributes => %i(
annotation
cpu_cores_per_socket
Expand Down Expand Up @@ -122,6 +124,7 @@ def host_operating_systems(extra_attributes = {})
:model_class => ::OperatingSystem,
:manager_ref => [:host],
:association => :host_operating_systems,
:parent_inventory_collections => [:hosts],
:inventory_object_attributes => %i(
name
product_name
Expand Down Expand Up @@ -346,6 +349,7 @@ def host_storages(extra_attributes = {})
:model_class => ::HostStorage,
:manager_ref => %i(host storage),
:association => :host_storages,
:parent_inventory_collections => [:hosts],
:inventory_object_attributes => %i(
ems_ref
read_only
Expand All @@ -362,6 +366,7 @@ def host_switches(extra_attributes = {})
:model_class => ::HostSwitch,
:manager_ref => %i(host switch),
:association => :host_switches,
:parent_inventory_collections => [:hosts],
:inventory_object_attributes => %i(
host
switch
Expand Down

0 comments on commit a68f1f2

Please sign in to comment.