Skip to content

Commit

Permalink
Merge pull request #17734 from Ladas/add_ems_custom_attributes_to_ems
Browse files Browse the repository at this point in the history
Replace custom_attributes by ems_custom_attributes
  • Loading branch information
agrare committed Jul 20, 2018
2 parents ece95c6 + d791296 commit 0d081fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/manageiq/providers/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class InfraManager < BaseManager
has_many :subnets, -> { distinct }, :through => :lans
has_many :networks, :through => :hardwares
has_many :guest_devices, :through => :hardwares
has_many :ems_custom_attributes, :through => :vms_and_templates

class << model_name
define_method(:route_key) { "ems_infras" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ def host_operating_systems
)
end

def custom_attributes
def ems_custom_attributes
add_properties(
:model_class => ::CustomAttribute,
:manager_ref => %i(name),
:parent_inventory_collections => %i(vms miq_templates),
)
Expand Down

0 comments on commit 0d081fb

Please sign in to comment.