Skip to content

Commit

Permalink
Add physical server asset details collection
Browse files Browse the repository at this point in the history
Most of the metadata about the physical servers is stored in associated
asset details entry, which serves as a data source for UI components.

This commit adds default collection for asset details that can be used
to store physical server metadata.
  • Loading branch information
Tadej Borovšak committed May 28, 2018
1 parent d868f6f commit 13367c8
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 13367c8

Please sign in to comment.