Skip to content

Commit

Permalink
libnetwork/pasta: BinaryName should be pasta
Browse files Browse the repository at this point in the history
pasta is a symlink to passt but we should really use pasta, just in case
that changes in the future.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Jun 15, 2023
1 parent 65a1dd9 commit d9ee72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libnetwork/pasta/pasta.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

const (
BinaryName = "passt"
BinaryName = "pasta"
)

type SetupOptions struct {
Expand All @@ -48,7 +48,7 @@ func Setup(opts *SetupOptions) error {
NoUDPNamespacePorts := true
NoMapGW := true

path, err := opts.Config.FindHelperBinary("pasta", true)
path, err := opts.Config.FindHelperBinary(BinaryName, true)
if err != nil {
return fmt.Errorf("could not find pasta, the network namespace can't be configured: %w", err)
}
Expand Down

0 comments on commit d9ee72c

Please sign in to comment.