From 96044b7f43eb7d30958152b443ca0d287dd7c591 Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Wed, 16 Mar 2016 17:46:05 -0700 Subject: [PATCH] Fixing the check to determine if the resource is namespaced --- pkg/apiserver/api_installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apiserver/api_installer.go b/pkg/apiserver/api_installer.go index 8e1fa24b887..cb020ff48c1 100644 --- a/pkg/apiserver/api_installer.go +++ b/pkg/apiserver/api_installer.go @@ -464,7 +464,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag for _, action := range actions { reqScope.Namer = action.Namer namespaced := "" - if strings.Contains(action.Path, scope.ArgumentName()) { + if apiResource.Namespaced { namespaced = "Namespaced" } switch action.Verb {