Fix linting

This commit is contained in:
Till Faelligen 2024-12-17 21:10:26 +01:00
parent 45de376264
commit c23aaadf2f
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -494,7 +494,7 @@ func testCreateAccount(dockerClient *client.Client, version *semver.Version, con
createUser := strings.ToLower("createaccountuser-" + branchName) createUser := strings.ToLower("createaccountuser-" + branchName)
log.Printf("%s: Creating account %s with create-account\n", branchName, createUser) log.Printf("%s: Creating account %s with create-account\n", branchName, createUser)
respID, err := dockerClient.ContainerExecCreate(context.Background(), containerID, types.ExecConfig{ respID, err := dockerClient.ContainerExecCreate(context.Background(), containerID, container.ExecOptions{
AttachStderr: true, AttachStderr: true,
AttachStdout: true, AttachStdout: true,
Cmd: []string{ Cmd: []string{
@ -507,7 +507,7 @@ func testCreateAccount(dockerClient *client.Client, version *semver.Version, con
return fmt.Errorf("failed to ContainerExecCreate: %w", err) return fmt.Errorf("failed to ContainerExecCreate: %w", err)
} }
response, err := dockerClient.ContainerExecAttach(context.Background(), respID.ID, types.ExecStartCheck{}) response, err := dockerClient.ContainerExecAttach(context.Background(), respID.ID, container.ExecStartOptions{})
if err != nil { if err != nil {
return fmt.Errorf("failed to attach to container: %w", err) return fmt.Errorf("failed to attach to container: %w", err)
} }