From 828d06f5f5e2c8ecd9a8d53c1ef40f37d19a62f5 Mon Sep 17 00:00:00 2001 From: Milas Bowman Date: Sat, 30 Jul 2022 12:09:36 -0400 Subject: [PATCH] docs: fix RollbackConfig/Order values (#3027) Closes #2626. Signed-off-by: Milas Bowman --- docker/types/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/types/services.py b/docker/types/services.py index c2fce9f4..360aed06 100644 --- a/docker/types/services.py +++ b/docker/types/services.py @@ -399,7 +399,7 @@ class UpdateConfig(dict): an update before the failure action is invoked, specified as a floating point number between 0 and 1. Default: 0 order (string): Specifies the order of operations when rolling out an - updated task. Either ``start_first`` or ``stop_first`` are accepted. + updated task. Either ``start-first`` or ``stop-first`` are accepted. """ def __init__(self, parallelism=0, delay=None, failure_action='continue', monitor=None, max_failure_ratio=None, order=None): @@ -453,7 +453,7 @@ class RollbackConfig(UpdateConfig): a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. Default: 0 order (string): Specifies the order of operations when rolling out a - rolled back task. Either ``start_first`` or ``stop_first`` are + rolled back task. Either ``start-first`` or ``stop-first`` are accepted. """ pass