Skip to content

Commit

Permalink
Merge pull request #17486 from xlab-si/redfish-physical-server-asset-…
Browse files Browse the repository at this point in the history
…details

Add physical server asset details collection
  • Loading branch information
agrare authored May 29, 2018
2 parents 50ece76 + 13367c8 commit 517282d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,16 @@ def physical_servers(extra_attributes = {})

attributes.merge!(extra_attributes)
end

def physical_server_details(extra_attributes = {})
attributes = {
:model_class => ::AssetDetail,
:association => :physical_server_details,
:manager_ref => [:resource],
:parent_inventory_collections => [:physical_servers],
}

attributes.merge!(extra_attributes)
end
end
end

0 comments on commit 517282d

Please sign in to comment.