From 4a3a31b31e5ba893fc81bd91a93efd3aa7e1cc7b Mon Sep 17 00:00:00 2001 From: Jorge Gasca Date: Sat, 9 Nov 2019 13:12:35 -0500 Subject: [PATCH] Change default return of ConfigRequired to true Commands that haven't been added to the map, such as plugins, should require the config by default. Signed-off-by: Jorge Gasca --- pkg/action/action.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/action/action.go b/pkg/action/action.go index a1ff9e66f..4c00853e3 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -283,5 +283,9 @@ func ConfigRequired(command string) bool { "helm": false, } - return actionConfigRequired[command] + if val, ok := actionConfigRequired[command]; ok { + return val + } + // Assume commands not present in the map require the config by default + return true }