Rename api.Namespace to api.NamespaceValue to avoid name collision

This commit is contained in:
derekwaynecarr
2015-01-19 14:35:41 -05:00
parent e27d534b87
commit 151be7773c
5 changed files with 15 additions and 15 deletions

View File

@@ -273,7 +273,7 @@ type binder struct {
func (b *binder) Bind(binding *api.Binding) error {
glog.V(2).Infof("Attempting to bind %v to %v", binding.PodID, binding.Host)
ctx := api.WithNamespace(api.NewContext(), binding.Namespace)
return b.Post().Namespace(api.Namespace(ctx)).Resource("bindings").Body(binding).Do().Error()
return b.Post().Namespace(api.NamespaceValue(ctx)).Resource("bindings").Body(binding).Do().Error()
}
type clock interface {