Skip to content

Commit

Permalink
Merge pull request #17426 from xlab-si/redfish-server-default-collection
Browse files Browse the repository at this point in the history
Add Redfish server default collection
  • Loading branch information
agrare committed May 25, 2018
2 parents ee36b9d + 976a56b commit c65502b
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class ManagerRefresh::InventoryCollectionDefault::PhysicalInfraManager < ManagerRefresh::InventoryCollectionDefault
class << self
def physical_servers(extra_attributes = {})
attributes = {
:model_class => ::PhysicalServer,
:association => :physical_servers,
:builder_params => {
:ems_id => ->(persister) { persister.manager.id }
}
}

attributes.merge!(extra_attributes)
end
end
end

0 comments on commit c65502b

Please sign in to comment.