Skip to content

Commit aaf68b7

Browse files
authored
api: note the data arg may also be a stream in put_archive (#2478)
Signed-off-by: Aarni Koskela <[email protected]>
1 parent f846232 commit aaf68b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/api/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def put_archive(self, container, path, data):
966966
container (str): The container where the file(s) will be extracted
967967
path (str): Path inside the container where the file(s) will be
968968
extracted. Must exist.
969-
data (bytes): tar data to be extracted
969+
data (bytes or stream): tar data to be extracted
970970
971971
Returns:
972972
(bool): True if the call succeeds.

docker/models/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def put_archive(self, path, data):
324324
Args:
325325
path (str): Path inside the container where the file(s) will be
326326
extracted. Must exist.
327-
data (bytes): tar data to be extracted
327+
data (bytes or stream): tar data to be extracted
328328
329329
Returns:
330330
(bool): True if the call succeeds.

0 commit comments

Comments
 (0)