Skip to content

Commit 719fe13

Browse files
committed
Investigation podman run --sysctl completion for sysctl test flaky #27252
Signed-off-by: Jan Rodák <[email protected]>
1 parent 685a448 commit 719fe13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/podman/common/completion.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
systemdDefine "github.com/containers/podman/v5/pkg/systemd/define"
2323
"github.com/containers/podman/v5/pkg/util"
2424
securejoin "github.com/cyphar/filepath-securejoin"
25+
"github.com/sirupsen/logrus"
2526
"github.com/spf13/cobra"
2627
libimageDefine "go.podman.io/common/libimage/define"
2728
"go.podman.io/common/libnetwork/types"
@@ -2000,6 +2001,7 @@ func AutocompleteSysctl(_ *cobra.Command, _ []string, toComplete string) ([]stri
20002001
})
20012002

20022003
if err != nil {
2004+
logrus.Errorf("error walking sysctl path %q: %v", sysPath, err)
20032005
return nil, cobra.ShellCompDirectiveError
20042006
}
20052007

0 commit comments

Comments
 (0)