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:
parent
c9e7b11df1
commit
e69909fbd3
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue