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 <jorge.ignacio.gasca@gmail.com>
pull/6915/head
Jorge Gasca 6 years ago
parent c18e4f3d63
commit 4a3a31b31e

@ -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
}

Loading…
Cancel
Save