mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
drivers/shared/executor: fix strings.Replace call
strings.Replace call with n=0 argument makes no sense as it will do nothing. Probably -1 is intended. Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
committed by
GitHub
parent
82d37b99df
commit
7cf58d08c1
@@ -87,7 +87,7 @@ func NewExecutorWithIsolation(logger hclog.Logger) Executor {
|
||||
logger.Error("unable to initialize stats", "error", err)
|
||||
}
|
||||
return &LibcontainerExecutor{
|
||||
id: strings.Replace(uuid.Generate(), "-", "_", 0),
|
||||
id: strings.Replace(uuid.Generate(), "-", "_", -1),
|
||||
logger: logger,
|
||||
totalCpuStats: stats.NewCpuStats(),
|
||||
userCpuStats: stats.NewCpuStats(),
|
||||
|
||||
Reference in New Issue
Block a user