From bc9a60f6964fb6a98e3b658a054789aef2d3cf62 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 18 Nov 2020 12:28:44 -0500 Subject: [PATCH] feat: switch to updateScalefile from generateScalefile The process is the same. --- plugins/ps/functions.go | 2 +- plugins/ps/subcommands.go | 2 +- plugins/ps/triggers.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ps/functions.go b/plugins/ps/functions.go index 35cd87939..4a6183d6a 100644 --- a/plugins/ps/functions.go +++ b/plugins/ps/functions.go @@ -70,7 +70,7 @@ func extractOrGenerateScalefile(appName string, image string) error { } common.LogInfo1Quiet("DOKKU_SCALE file not found in app image. Generating one based on Procfile...") - if err := generateScalefile(appName); err != nil { + if err := updateScalefile(appName, make(map[string]int)); err != nil { common.LogDebug(fmt.Sprintf("Error generating scale file: %s", err.Error())) return err } diff --git a/plugins/ps/subcommands.go b/plugins/ps/subcommands.go index 3be60b88d..75182c591 100644 --- a/plugins/ps/subcommands.go +++ b/plugins/ps/subcommands.go @@ -108,7 +108,7 @@ func CommandScale(appName string, skipDeploy bool, processTuples []string) error if !hasScaleFile(appName) { err := common.SuppressOutput(func() error { - return generateScalefile(appName) + return updateScalefile(appName, make(map[string]int)) }) if err != nil { return err diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index 6decd3f80..93dd579a9 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -93,7 +93,7 @@ func TriggerPostCreate(appName string) error { return err } - return generateScalefile(appName) + return updateScalefile(appName, make(map[string]int)) } // TriggerPostDelete destroys the ps properties for a given app container