Kaydet (Commit) 54804936 authored tarafından Joffrey F's avatar Joffrey F

signal in Client.kill can be a string containing the signal's name

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst 986a14a1
......@@ -187,7 +187,9 @@ class ContainerApiMixin(object):
url = self._url("/containers/{0}/kill", container)
params = {}
if signal is not None:
params['signal'] = int(signal)
if not isinstance(signal, six.string_types):
signal = int(signal)
params['signal'] = signal
res = self._post(url, params=params)
self._raise_for_status(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment