Merge pull request #1874 from derekwaynecarr/fix_typo_etcd

Fix typo etcd registry
This commit is contained in:
Eric Tune 2014-10-17 14:02:25 -07:00
commit 67fec22576

View File

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