chore: remove default false values when calling CallExecCommand
This commit is contained in:
1 parent
8b9dcd2242
commit
047a3c00f5
24 files changed
+20
-55
No files matched your search
@@ -531,20 +531,18 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
|
||||
|
||||
common.LogInfo1("Running post-deploy")
|
||||
_, err = common.CallPlugnTrigger(common.PlugnTriggerInput{
|
||||
Args: []string{appName, "", "", imageTag},
|
||||
CaptureOutput: false,
|
||||
StreamStdio: true,
|
||||
Trigger: "core-post-deploy",
|
||||
Args: []string{appName, "", "", imageTag},
|
||||
StreamStdio: true,
|
||||
Trigger: "core-post-deploy",
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error running core-post-deploy: %w", err)
|
||||
|
||||
}
|
||||
_, err = common.CallPlugnTrigger(common.PlugnTriggerInput{
|
||||
Args: []string{appName, "", "", imageTag},
|
||||
CaptureOutput: false,
|
||||
StreamStdio: true,
|
||||
Trigger: "post-deploy",
|
||||
Args: []string{appName, "", "", imageTag},
|
||||
StreamStdio: true,
|
||||
Trigger: "post-deploy",
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error running post-deploy: %w", err)
|
||||
@@ -806,14 +804,12 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
|
||||
Trigger: "config-get",
|
||||
Args: []string{appName, "DOKKU_RM_CONTAINER"},
|
||||
CaptureOutput: true,
|
||||
StreamStdio: false,
|
||||
})
|
||||
if err != nil {
|
||||
resp, err := common.CallPlugnTrigger(common.PlugnTriggerInput{
|
||||
Trigger: "config-get-global",
|
||||
Args: []string{"DOKKU_RM_CONTAINER"},
|
||||
CaptureOutput: true,
|
||||
StreamStdio: false,
|
||||
})
|
||||
if err == nil {
|
||||
dokkuRmContainer = strings.TrimSpace(resp.Stdout)
|
||||
@@ -865,7 +861,6 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
|
||||
Trigger: "procfile-get-command",
|
||||
Args: []string{appName, args[0], "5000"},
|
||||
CaptureOutput: true,
|
||||
StreamStdio: false,
|
||||
})
|
||||
if err == nil && resp.Stdout != "" {
|
||||
common.LogInfo1Quiet(fmt.Sprintf("Found '%s' in Procfile, running that command", args[0]))
|
||||
|
||||
Reference in new issue
Block a user