Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change custom_attributes, hosts_guest_devices and host_system_services according to core #303

Merged
merged 1 commit into from
Jul 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ def initialize_infra_inventory_collections

%i(customization_specs
host_hardwares
host_guest_devices
host_networks
host_storages
host_switches
host_system_services
host_operating_systems
miq_scsi_luns
miq_scsi_targets
Expand All @@ -18,8 +20,6 @@ def initialize_infra_inventory_collections
end

add_hosts
add_host_guest_devices
add_host_system_services

%i(disks
guest_devices
Expand Down Expand Up @@ -76,26 +76,6 @@ def add_hosts
end
end

def add_host_guest_devices
add_collection(infra, :host_guest_devices) do |builder|
builder.add_properties(
:model_class => ::GuestDevice,
:manager_ref => %i(hardware uid_ems),
:parent_inventory_collections => %i(hosts)
)
end
end

def add_host_system_services
add_collection(infra, :host_system_services) do |builder|
builder.add_properties(
:model_class => ::SystemService,
:manager_ref => %i(host name),
:parent_inventory_collections => %i(hosts)
)
end
end

def add_lans
add_collection(infra, :lans) do |builder|
builder.add_properties(
Expand Down