From f029305a83727d3d254b1e14f127f13d93334841 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Mon, 18 Sep 2023 11:15:06 +0200 Subject: [PATCH] firmware set: sets include the default=true label --- cmd/common.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/common.go b/cmd/common.go index 73171a2b..d13db800 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -109,7 +109,7 @@ func FirmwareSetIDByVendorModel(ctx context.Context, vendor, model string, clien // TODO: move into common library func FirmwareSetByVendorModel(ctx context.Context, vendor, model string, client *serverservice.Client) ([]serverservice.ComponentFirmwareSet, error) { // ?attr=sh.hollow.firmware_set.labels~vendor~eq~dell&attr=sh.hollow.firmware_set.labels~model~eq~r750&attr=sh.hollow.firmware_set.labels~latest~eq~false - // list latest firmware sets by vendor, model attributes + // list latest, default firmware sets by vendor, model attributes fwSetListparams := &serverservice.ComponentFirmwareSetListParams{ AttributeListParams: []serverservice.AttributeListParams{ { @@ -126,7 +126,13 @@ func FirmwareSetByVendorModel(ctx context.Context, vendor, model string, client }, { Namespace: FirmwareSetAttributeNS, - Keys: []string{"latest"}, + Keys: []string{"latest"}, // latest indicates the most current revision of the firmware set. + Operator: "eq", + Value: "true", + }, + { + Namespace: FirmwareSetAttributeNS, + Keys: []string{"default"}, // default indicates the firmware set does not belong to an org/project. Operator: "eq", Value: "true", },