Skip to content

Commit

Permalink
firmware set: sets include the default=true label
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Sep 26, 2023
1 parent aab2976 commit f029305
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand All @@ -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",
},
Expand Down

0 comments on commit f029305

Please sign in to comment.