Generate a simplified CDI spec by default

As simplified CDI spec has no duplicate entities in any single set of container edits.
Furthermore, contianer edits defined at a spec-level are not included in the container
edits for a device.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-03-15 12:46:34 +02:00
parent 5ff206e1a9
commit 33f6fe0217
3 changed files with 19 additions and 2 deletions

View File

@@ -28,8 +28,8 @@ var _ Transformer = (*simplify)(nil)
// NewSimplifier creates a simplifier transformer.
// This transoformer ensures that entities in the spec are deduplicated and that common edits are removed from device-specific edits.
func NewSimplifier() (Transformer, error) {
return &simplify{}, nil
func NewSimplifier() Transformer {
return &simplify{}
}
// Transform simplifies the supplied spec.