Commit 67fec225 authored by Eric Tune's avatar Eric Tune

Merge pull request #1874 from derekwaynecarr/fix_typo_etcd

Fix typo etcd registry
parents c88cf8de e2c88879
......@@ -78,10 +78,10 @@ func MakeEtcdItemKey(ctx api.Context, prefix string, id string) (string, error)
key := MakeEtcdListKey(ctx, prefix)
ns, ok := api.NamespaceFrom(ctx)
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 {
return "", fmt.Errorf("Invalid request. Id parameter required")
return "", fmt.Errorf("Invalid request. Id parameter required.")
}
key = key + "/" + id
return key, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment