summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2018-08-09 15:42:40 -0700
committerJoffrey F <joffrey@docker.com>2018-08-09 15:42:40 -0700
commit0c72cd62418d98b51fd6b5cac069e83e087a0125 (patch)
tree63b131247d7d03c3223a6ef69d1feb22b8c90ed1
parentcc766633de21da500de8902df4bfe2904e0a8299 (diff)
parent24fff59bd95d077a523496a942225a074707bc08 (diff)
downloaddocker-py-0c72cd62418d98b51fd6b5cac069e83e087a0125.tar.gz
Merge branch 'master' of https://github.com/NikolayMurha/docker-py into NikolayMurha-master
-rw-r--r--docker/types/services.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/types/services.py b/docker/types/services.py
index 31f4750..2940763 100644
--- a/docker/types/services.py
+++ b/docker/types/services.py
@@ -368,10 +368,10 @@ class UpdateConfig(dict):
parallelism (int): Maximum number of tasks to be updated in one
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
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
failures, in nanoseconds.
max_failure_ratio (float): The fraction of tasks that may fail during
@@ -385,7 +385,7 @@ class UpdateConfig(dict):
self['Parallelism'] = parallelism
if delay is not None:
self['Delay'] = delay
- if failure_action not in ('pause', 'continue'):
+ if failure_action not in ('pause', 'continue', 'rollback'):
raise errors.InvalidArgument(
'failure_action must be either `pause` or `continue`.'
)