mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
[cli] fix Generator's error messages
Invalid variables are used when format error messages. This change fixes them.
This commit is contained in:
@@ -66,7 +66,7 @@ func (s ConfigMapGeneratorV1) Generate(genericParams map[string]interface{}) (ru
|
||||
if found {
|
||||
fromLiteralArray, isArray := fromLiteralStrings.([]string)
|
||||
if !isArray {
|
||||
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
|
||||
return nil, fmt.Errorf("expected []string, found :%v", fromLiteralStrings)
|
||||
}
|
||||
delegate.LiteralSources = fromLiteralArray
|
||||
delete(genericParams, "from-literal")
|
||||
|
||||
Reference in New Issue
Block a user