Send the correct signal to the instance

This commit is contained in:
Dane Everitt 2019-09-28 13:18:09 -07:00
parent 640f4b3a98
commit 9dcda47657
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -223,7 +223,7 @@ func (d *DockerEnvironment) Terminate(signal os.Signal) error {
d.Server.SetState(ProcessStoppingState)
return d.Client.ContainerKill(
ctx, d.Server.Uuid, strings.TrimPrefix("signal ", signal.String()),
ctx, d.Server.Uuid, strings.TrimSuffix(strings.TrimPrefix(signal.String(), "signal "), "ed"),
)
}