From ea10019068b6e8edcbb43f53743e148756b42a29 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 17 Jul 2024 10:08:13 +0200 Subject: [PATCH] fix: "secret insert" respects env version --- cli/app/secret.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/app/secret.go b/cli/app/secret.go index a6751cca5..5d4a09c7e 100644 --- a/cli/app/secret.go +++ b/cli/app/secret.go @@ -178,6 +178,9 @@ Example: `, Action: func(c *cli.Context) error { app := internal.ValidateApp(c) + if err := app.Recipe.Ensure(internal.Chaos, internal.Offline); err != nil { + log.Fatal(err) + } if len(c.Args()) != 4 { internal.ShowSubcommandHelpAndError(c, errors.New("missing arguments?"))