on_failure -> on-failure in compose code

on_failure should be on-failure

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
Charlie Drage 2017-06-28 11:08:44 -04:00
parent 92a2a1d539
commit d3f9a6c610
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ services:
cpus: '0.0001' cpus: '0.0001'
memory: 20M memory: 20M
restart_policy: restart_policy:
condition: on_failure condition: on-failure
delay: 5s delay: 5s
max_attempts: 3 max_attempts: 3
window: 120s window: 120s

View File

@ -683,7 +683,7 @@ func TestFullExample(t *testing.T) {
}, },
}, },
RestartPolicy: &types.RestartPolicy{ RestartPolicy: &types.RestartPolicy{
Condition: "on_failure", Condition: "on-failure",
Delay: durationPtr(5 * time.Second), Delay: durationPtr(5 * time.Second),
MaxAttempts: uint64Ptr(3), MaxAttempts: uint64Ptr(3),
Window: durationPtr(2 * time.Minute), Window: durationPtr(2 * time.Minute),