Skip to content

Commit

Permalink
Fix the metadata of the dismpatch extractor to ensure the PURL is cor…
Browse files Browse the repository at this point in the history
…rectly generated.

PiperOrigin-RevId: 729054065
  • Loading branch information
tooryx authored and copybara-github committed Feb 20, 2025
1 parent 61ab534 commit bbafc2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extractor/standalone/windows/dismpatch/dismpatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func inventoryFromOutput(flavor, output string) ([]*extractor.Inventory, error)
{
Name: windowsProduct,
Version: imgVersion,
Metadata: metadata.OSVersion{
Metadata: &metadata.OSVersion{
Product: windowsProduct,
FullVersion: imgVersion,
},
Expand Down
2 changes: 1 addition & 1 deletion extractor/standalone/windows/dismpatch/dismpatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestInventoryFromOutput(t *testing.T) {
{
Name: "windows_server_2019",
Version: "10.0.17763.3406",
Metadata: metadata.OSVersion{
Metadata: &metadata.OSVersion{
Product: "windows_server_2019",
FullVersion: "10.0.17763.3406",
},
Expand Down

0 comments on commit bbafc2d

Please sign in to comment.