From 4b7ec6384caed62217b672ab22c29dfa9fdced71 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 5 Jan 2022 19:21:41 +0100 Subject: [PATCH] fix: fix chaos mode for deployment --- cli/internal/deploy.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index 0c741762..349250b5 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -24,8 +24,10 @@ import ( func DeployAction(c *cli.Context) error { app := ValidateApp(c) - if err := recipe.EnsureUpToDate(app.Type); err != nil { - logrus.Fatal(err) + if !Chaos { + if err := recipe.EnsureUpToDate(app.Type); err != nil { + logrus.Fatal(err) + } } r, err := recipe.Get(app.Type)