Support for docker.types.Placement.MaxReplicas (new in API 1.40) in Docker Swarm Service

Signed-off-by: WojciechowskiPiotr <devel@it-playground.pl>
This commit is contained in:
WojciechowskiPiotr 2021-02-09 19:45:52 +01:00
parent f0ab0ed25d
commit 514f98a0d6
1 changed files with 2 additions and 2 deletions

View File

@ -663,8 +663,8 @@ class Placement(dict):
platforms (:py:class:`list` of tuple): A list of platforms
expressed as ``(arch, os)`` tuples
"""
def __init__(self, constraints=None, preferences=None, maxreplicas=None,
platforms=None):
def __init__(self, constraints=None, preferences=None, platforms=None,
maxreplicas=None):
if constraints is not None:
self['Constraints'] = constraints
if preferences is not None: