diff --git a/plugins/app-json/functions.go b/plugins/app-json/functions.go index b596044c7..45610ff25 100644 --- a/plugins/app-json/functions.go +++ b/plugins/app-json/functions.go @@ -133,11 +133,7 @@ func cleanupDeploymentContainer(containerID string, phase string) error { } func executeScript(appName string, image string, imageTag string, phase string) error { - phaseName := phase - if phase == "heroku.postdeploy" { - phaseName = "first deploy postdeploy" - } - common.LogInfo1(fmt.Sprintf("Checking for %s task", phaseName)) + common.LogInfo1(fmt.Sprintf("Checking for %s task", phase)) command := "" phaseSource := "" if phase == "release" { diff --git a/tests/unit/app-json-4.bats b/tests/unit/app-json-4.bats index 283d88034..315d1c777 100644 --- a/tests/unit/app-json-4.bats +++ b/tests/unit/app-json-4.bats @@ -50,7 +50,7 @@ teardown() { run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_failing_postdeploy echo "output: $output" echo "status: $status" - assert_output_contains "Execution of first deploy postdeploy task failed" + assert_output_contains "Execution of heroku.postdeploy task failed" assert_failure }