From 302537efd28ff32109d540069b68a2a1e7d4ae36 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Aug 2021 16:07:26 -0400 Subject: [PATCH] refactor: skip image fetching when deploys are skipped --- plugins/ps/functions.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ps/functions.go b/plugins/ps/functions.go index f2d91baae..3a1b6abd9 100644 --- a/plugins/ps/functions.go +++ b/plugins/ps/functions.go @@ -395,6 +395,10 @@ func scaleSet(appName string, skipDeploy bool, processTuples []string) error { return err } + if skipDeploy { + return nil + } + if !common.IsDeployed(appName) { return nil } @@ -404,10 +408,6 @@ func scaleSet(appName string, skipDeploy bool, processTuples []string) error { return err } - if skipDeploy { - return nil - } - return common.PlugnTrigger("release-and-deploy", []string{appName, imageTag}...) }