From 4e448c131dc7f228094f1edc29eefed294cc050a Mon Sep 17 00:00:00 2001 From: Michael Zappa Date: Mon, 19 Feb 2024 09:35:32 -0700 Subject: [PATCH] format pciid Signed-off-by: Michael Zappa --- pkg/types/100/types.go | 2 +- pkg/types/100/types_test.go | 2 +- pkg/types/types_test.go | 2 +- pkg/version/version_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/types/100/types.go b/pkg/types/100/types.go index 2fdda7d3..5e29eca4 100644 --- a/pkg/types/100/types.go +++ b/pkg/types/100/types.go @@ -272,7 +272,7 @@ type Interface struct { Mac string `json:"mac,omitempty"` Sandbox string `json:"sandbox,omitempty"` SocketPath string `json:"socket_path,omitempty"` - PCIID string `json:"pci_id,omitempty"` + PciID string `json:"pci_id,omitempty"` } func (i *Interface) String() string { diff --git a/pkg/types/100/types_test.go b/pkg/types/100/types_test.go index 74e627d0..7971d385 100644 --- a/pkg/types/100/types_test.go +++ b/pkg/types/100/types_test.go @@ -53,7 +53,7 @@ func testResult() *current.Result { Name: "eth0", Mac: "00:11:22:33:44:55", Sandbox: "/proc/3553/ns/net", - PCIID: "8086:9a01", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, }, diff --git a/pkg/types/types_test.go b/pkg/types/types_test.go index 41309036..1c86ec6e 100644 --- a/pkg/types/types_test.go +++ b/pkg/types/types_test.go @@ -164,7 +164,7 @@ var _ = Describe("Types", func() { Name: "eth0", Mac: "00:11:22:33:44:55", Sandbox: "/proc/3553/ns/net", - PCIID: "8086:9a01", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, }, diff --git a/pkg/version/version_test.go b/pkg/version/version_test.go index 9d8cbc7c..7f7aaac1 100644 --- a/pkg/version/version_test.go +++ b/pkg/version/version_test.go @@ -76,7 +76,7 @@ var _ = Describe("Version operations", func() { Name: "eth0", Mac: "00:11:22:33:44:55", Sandbox: "/proc/3553/ns/net", - PCIID: "8086:9a01", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, },