1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 15:18:20 +00:00
This commit is contained in:
Darren Shepherd
2017-11-28 14:28:25 -07:00
parent faa1fb2148
commit 389d27b3e5
28 changed files with 490 additions and 159 deletions

View File

@@ -78,7 +78,7 @@ func parseSubContext(parts []string, apiRequest *types.APIContext) []string {
apiRequest.SubContext = map[string]string{}
apiRequest.Attributes = map[string]interface{}{}
for len(parts) > 3 && apiRequest.Version != nil {
for len(parts) > 3 && apiRequest.Version != nil && parts[3] != "" {
resourceType := parts[1]
resourceID := parts[2]