fix: use correct variable name
This commit is contained in:
1 file changed
+8
-8
@@ -148,14 +148,14 @@ func executeScript(appName string, image string, imageTag string, phase string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if command == "" {
|
if command == "" {
|
||||||
common.LogVerbose(fmt.Sprintf("No %s task found, skipping", phaseName))
|
common.LogVerbose(fmt.Sprintf("No %s task found, skipping", phase))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if phase == "predeploy" {
|
if phase == "predeploy" {
|
||||||
common.LogVerbose(fmt.Sprintf("Executing %s task from %s: %s", phaseName, phaseSource, command))
|
common.LogVerbose(fmt.Sprintf("Executing %s task from %s: %s", phase, phaseSource, command))
|
||||||
} else {
|
} else {
|
||||||
common.LogVerbose(fmt.Sprintf("Executing %s task from %s in ephemeral container: %s", phaseName, phaseSource, command))
|
common.LogVerbose(fmt.Sprintf("Executing %s task from %s in ephemeral container: %s", phase, phaseSource, command))
|
||||||
}
|
}
|
||||||
|
|
||||||
isHerokuishImage := common.IsImageHerokuishBased(image, appName)
|
isHerokuishImage := common.IsImageHerokuishBased(image, appName)
|
||||||
@@ -267,15 +267,15 @@ func executeScript(appName string, image string, imageTag string, phase string)
|
|||||||
defer cleanupDeploymentContainer(containerID, phase)
|
defer cleanupDeploymentContainer(containerID, phase)
|
||||||
|
|
||||||
if !waitForExecution(containerID) {
|
if !waitForExecution(containerID) {
|
||||||
common.LogInfo2Quiet(fmt.Sprintf("Start of %s %s task (%s) output", appName, phaseName, containerID[0:9]))
|
common.LogInfo2Quiet(fmt.Sprintf("Start of %s %s task (%s) output", appName, phase, containerID[0:9]))
|
||||||
common.LogVerboseQuietContainerLogs(containerID)
|
common.LogVerboseQuietContainerLogs(containerID)
|
||||||
common.LogInfo2Quiet(fmt.Sprintf("End of %s %s task (%s) output", appName, phaseName, containerID[0:9]))
|
common.LogInfo2Quiet(fmt.Sprintf("End of %s %s task (%s) output", appName, phase, containerID[0:9]))
|
||||||
return fmt.Errorf("Execution of %s task failed: %s", phaseName, command)
|
return fmt.Errorf("Execution of %s task failed: %s", phase, command)
|
||||||
}
|
}
|
||||||
|
|
||||||
common.LogInfo2Quiet(fmt.Sprintf("Start of %s %s task (%s) output", appName, phaseName, containerID[0:9]))
|
common.LogInfo2Quiet(fmt.Sprintf("Start of %s %s task (%s) output", appName, phase, containerID[0:9]))
|
||||||
common.LogVerboseQuietContainerLogs(containerID)
|
common.LogVerboseQuietContainerLogs(containerID)
|
||||||
common.LogInfo2Quiet(fmt.Sprintf("End of %s %s task (%s) output", appName, phaseName, containerID[0:9]))
|
common.LogInfo2Quiet(fmt.Sprintf("End of %s %s task (%s) output", appName, phase, containerID[0:9]))
|
||||||
|
|
||||||
if phase != "predeploy" {
|
if phase != "predeploy" {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user