fix(linters): add back removed linters and extend them to CE BE-11294
This commit is contained in:
@@ -2,7 +2,6 @@ package composeplugin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -134,7 +133,7 @@ func createFile(dir, fileName, content string) (string, error) {
|
||||
}
|
||||
|
||||
func containerExists(containerName string) bool {
|
||||
cmd := exec.Command("docker", "ps", "-a", "-f", fmt.Sprintf("name=%s", containerName))
|
||||
cmd := exec.Command("docker", "ps", "-a", "-f", "name="+containerName)
|
||||
|
||||
out, err := cmd.Output()
|
||||
if err != nil {
|
||||
|
||||
@@ -124,7 +124,7 @@ func (wrapper *PluginWrapper) WaitForStatus(ctx context.Context, name string, st
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
waitResult.ErrorMsg = fmt.Sprintf("failed to wait for status: %s", ctx.Err().Error())
|
||||
waitResult.ErrorMsg = "failed to wait for status: " + ctx.Err().Error()
|
||||
waitResultCh <- waitResult
|
||||
default:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user