1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-02 15:54:32 +00:00

Changes to generator for deepcopygen

This commit is contained in:
Darren Shepherd
2017-11-11 17:07:09 -07:00
parent f9b15a5e39
commit 591b663b2d
6 changed files with 80 additions and 7 deletions

View File

@@ -227,9 +227,7 @@ func (a *APIOperations) DoByID(schemaType string, id string, respObject interfac
return errors.New("Failed to find collection URL for [" + schemaType + "]")
}
err := a.DoGet(collectionUrl+"/"+id, nil, respObject)
//TODO check for 404 and return nil, nil
return err
return a.DoGet(collectionUrl+"/"+id, nil, respObject)
}
func (a *APIOperations) DoResourceDelete(schemaType string, existing *types.Resource) error {