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:
Iskander (Alex) Sharipov 2019-03-02 00:33:17 +03:00 committed by GitHub
parent c9e7b11df1
commit e69909fbd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),