Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zappa <[email protected]>
  • Loading branch information
MikeZappa87 committed Feb 26, 2024
1 parent 4e448c1 commit 68bf78a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions pkg/types/100/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ func (r *Result) PrintTo(writer io.Writer) error {

// Interface contains values about the created interfaces
type Interface struct {
Name string `json:"name"`
Mac string `json:"mac,omitempty"`
Sandbox string `json:"sandbox,omitempty"`
SocketPath string `json:"socket_path,omitempty"`
PciID string `json:"pci_id,omitempty"`
Name string `json:"name"`
Mac string `json:"mac,omitempty"`
Sandbox string `json:"sandbox,omitempty"`
SocketPath string `json:"socket_path,omitempty"`
PciID string `json:"pci_id,omitempty"`
}

func (i *Interface) String() string {
Expand Down
8 changes: 4 additions & 4 deletions pkg/types/100/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func testResult() *current.Result {
CNIVersion: current.ImplementedSpecVersion,
Interfaces: []*current.Interface{
{
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
SocketPath: "/path/to/vhost/fd",
},
},
Expand Down
8 changes: 4 additions & 4 deletions pkg/types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ var _ = Describe("Types", func() {
CNIVersion: "1.0.0",
Interfaces: []*current.Interface{
{
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
SocketPath: "/path/to/vhost/fd",
},
},
Expand Down
8 changes: 4 additions & 4 deletions pkg/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ var _ = Describe("Version operations", func() {
CNIVersion: "1.0.0",
Interfaces: []*cniv1.Interface{
{
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
Name: "eth0",
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
SocketPath: "/path/to/vhost/fd",
},
},
Expand Down

0 comments on commit 68bf78a

Please sign in to comment.