mirror of https://github.com/docker/docker-py.git
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:
parent
f0ab0ed25d
commit
514f98a0d6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue