From d3f9a6c610f7535a8b0a6e41c09846eae720eac2 Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Wed, 28 Jun 2017 11:08:44 -0400 Subject: [PATCH] on_failure -> on-failure in compose code on_failure should be on-failure Signed-off-by: Charlie Drage --- cli/compose/loader/full-example.yml | 2 +- cli/compose/loader/loader_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/compose/loader/full-example.yml b/cli/compose/loader/full-example.yml index e1e3b77d39..76087c57ba 100644 --- a/cli/compose/loader/full-example.yml +++ b/cli/compose/loader/full-example.yml @@ -39,7 +39,7 @@ services: cpus: '0.0001' memory: 20M restart_policy: - condition: on_failure + condition: on-failure delay: 5s max_attempts: 3 window: 120s diff --git a/cli/compose/loader/loader_test.go b/cli/compose/loader/loader_test.go index 43a02204b7..6a43e52121 100644 --- a/cli/compose/loader/loader_test.go +++ b/cli/compose/loader/loader_test.go @@ -683,7 +683,7 @@ func TestFullExample(t *testing.T) { }, }, RestartPolicy: &types.RestartPolicy{ - Condition: "on_failure", + Condition: "on-failure", Delay: durationPtr(5 * time.Second), MaxAttempts: uint64Ptr(3), Window: durationPtr(2 * time.Minute),