From 7cf58d08c1b2a78708737b8274895ce077c8a2a1 Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Sat, 2 Mar 2019 00:33:17 +0300 Subject: [PATCH] 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 --- drivers/shared/executor/executor_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/shared/executor/executor_linux.go b/drivers/shared/executor/executor_linux.go index db2fc684f..565561d6e 100644 --- a/drivers/shared/executor/executor_linux.go +++ b/drivers/shared/executor/executor_linux.go @@ -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(),