Commit d4c37e35 authored by Tim Hockin's avatar Tim Hockin

small cleanup on pkg/config

parent f24ea5ce
...@@ -78,7 +78,8 @@ func CreateObject(client *client.RESTClient, mapping *meta.RESTMapping, obj runt ...@@ -78,7 +78,8 @@ func CreateObject(client *client.RESTClient, mapping *meta.RESTMapping, obj runt
// TODO: This should be using RESTHelper // TODO: This should be using RESTHelper
err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error() err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
if err != nil { if err != nil {
return &errs.ValidationError{errs.ValidationErrorTypeInvalid, name, err} e := errs.NewFieldInvalid(name, err)
return &e
} }
return nil return 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