mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
api/types/swarm: define type for FailureAction
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -705,7 +705,7 @@ func setImage(image string) testdaemon.ServiceConstructor {
|
||||
}
|
||||
}
|
||||
|
||||
func setFailureAction(failureAction string) testdaemon.ServiceConstructor {
|
||||
func setFailureAction(failureAction swarm.FailureAction) testdaemon.ServiceConstructor {
|
||||
return func(s *swarm.Service) {
|
||||
s.Spec.UpdateConfig.FailureAction = failureAction
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user