Skip to content

Commit

Permalink
Revise format and comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshiuan committed Sep 11, 2024
1 parent a862152 commit 9ef119f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions topo/topo.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import (
)

var (
setPIDMaxScript = filepath.Join(homedir.HomeDir(), "kne-internal", "set_pid_max.sh")
setPIDMaxScript = filepath.Join(homedir.HomeDir(), "kne-internal", "set_pid_max.sh")
protojsonUnmarshaller = protojson.UnmarshalOptions{
AllowPartial: true,
DiscardUnknown: false,
Expand Down Expand Up @@ -488,9 +488,9 @@ func (m *Manager) load() error {
uid++
}
for k, n := range nMap {
// If the script is found, then run it. Else silently ignore it.
// The set_pid_max script modifies the kernel.pid_max value to
// be acceptable for the Cisco 8000e container.
// Bug: Some vendors incorrectly increase the value of kernel.pid_max which
// causes other vendors to have issues. Run this script as a temporary
// workaround.
if _, err := os.Stat(setPIDMaxScript); err == nil {
if err := run.LogCommand(setPIDMaxScript); err != nil {
return fmt.Errorf("failed to exec set_pid_max script: %w", err)
Expand Down

0 comments on commit 9ef119f

Please sign in to comment.