mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Fix typo etcd registry
This commit is contained in:
parent
99e1e2fd25
commit
e2c888795c
@ -78,10 +78,10 @@ func MakeEtcdItemKey(ctx api.Context, prefix string, id string) (string, error)
|
|||||||
key := MakeEtcdListKey(ctx, prefix)
|
key := MakeEtcdListKey(ctx, prefix)
|
||||||
ns, ok := api.NamespaceFrom(ctx)
|
ns, ok := api.NamespaceFrom(ctx)
|
||||||
if !ok || len(ns) == 0 {
|
if !ok || len(ns) == 0 {
|
||||||
return "", fmt.Errorf("Invalid request. Unable to address and item without a namespace on context")
|
return "", fmt.Errorf("Invalid request. Namespace parameter required.")
|
||||||
}
|
}
|
||||||
if len(id) == 0 {
|
if len(id) == 0 {
|
||||||
return "", fmt.Errorf("Invalid request. Id parameter required")
|
return "", fmt.Errorf("Invalid request. Id parameter required.")
|
||||||
}
|
}
|
||||||
key = key + "/" + id
|
key = key + "/" + id
|
||||||
return key, nil
|
return key, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user