mirror of https://github.com/docker/docker-py.git
Merge branch 'master' of https://github.com/NikolayMurha/docker-py into NikolayMurha-master
This commit is contained in:
commit
0c72cd6241
|
@ -368,10 +368,10 @@ class UpdateConfig(dict):
|
||||||
|
|
||||||
parallelism (int): Maximum number of tasks to be updated in one
|
parallelism (int): Maximum number of tasks to be updated in one
|
||||||
iteration (0 means unlimited parallelism). Default: 0.
|
iteration (0 means unlimited parallelism). Default: 0.
|
||||||
delay (int): Amount of time between updates.
|
delay (int): Amount of time between updates, in nanoseconds.
|
||||||
failure_action (string): Action to take if an updated task fails to
|
failure_action (string): Action to take if an updated task fails to
|
||||||
run, or stops running during the update. Acceptable values are
|
run, or stops running during the update. Acceptable values are
|
||||||
``continue`` and ``pause``. Default: ``continue``
|
``continue``, ``rollback`` and ``pause``. Default: ``continue``
|
||||||
monitor (int): Amount of time to monitor each updated task for
|
monitor (int): Amount of time to monitor each updated task for
|
||||||
failures, in nanoseconds.
|
failures, in nanoseconds.
|
||||||
max_failure_ratio (float): The fraction of tasks that may fail during
|
max_failure_ratio (float): The fraction of tasks that may fail during
|
||||||
|
@ -385,7 +385,7 @@ class UpdateConfig(dict):
|
||||||
self['Parallelism'] = parallelism
|
self['Parallelism'] = parallelism
|
||||||
if delay is not None:
|
if delay is not None:
|
||||||
self['Delay'] = delay
|
self['Delay'] = delay
|
||||||
if failure_action not in ('pause', 'continue'):
|
if failure_action not in ('pause', 'continue', 'rollback'):
|
||||||
raise errors.InvalidArgument(
|
raise errors.InvalidArgument(
|
||||||
'failure_action must be either `pause` or `continue`.'
|
'failure_action must be either `pause` or `continue`.'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue