Skip to content

Commit 514f98a

Browse files
author
WojciechowskiPiotr
committed
Support for docker.types.Placement.MaxReplicas (new in API 1.40) in Docker Swarm Service
Signed-off-by: WojciechowskiPiotr <[email protected]>
1 parent f0ab0ed commit 514f98a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/types/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ class Placement(dict):
663663
platforms (:py:class:`list` of tuple): A list of platforms
664664
expressed as ``(arch, os)`` tuples
665665
"""
666-
def __init__(self, constraints=None, preferences=None, maxreplicas=None,
667-
platforms=None):
666+
def __init__(self, constraints=None, preferences=None, platforms=None,
667+
maxreplicas=None):
668668
if constraints is not None:
669669
self['Constraints'] = constraints
670670
if preferences is not None:

0 commit comments

Comments
 (0)