Pārlūkot izejas kodu

Update docker-py

Brought in changes from https://github.com/dotcloud/docker-py/pull/145
Aanand Prasad 11 gadi atpakaļ
vecāks
revīzija
084db337a0
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      fig/packages/docker/client.py

+ 3 - 0
fig/packages/docker/client.py

@@ -152,6 +152,7 @@ class Client(requests.Session):
         attach_stdin = False
         attach_stdout = False
         attach_stderr = False
+        stdin_once = False
 
         if not detach:
             attach_stdout = True
@@ -159,6 +160,7 @@ class Client(requests.Session):
 
             if stdin_open:
                 attach_stdin = True
+                stdin_once = True
 
         return {
             'Hostname':     hostname,
@@ -166,6 +168,7 @@ class Client(requests.Session):
             'User':         user,
             'Tty':          tty,
             'OpenStdin':    stdin_open,
+            'StdinOnce':    stdin_once,
             'Memory':       mem_limit,
             'AttachStdin':  attach_stdin,
             'AttachStdout': attach_stdout,