Merge pull request #7840 from mattfarina/fix-7812

Fix nil pointer error
pull/7926/head
Matt Farina 6 years ago committed by GitHub
commit eb42670666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -361,6 +361,11 @@ func (c *Client) Get(namespace string, reader io.Reader) (string, error) {
err = perform(infos, func(info *resource.Info) error {
mux.Lock()
defer mux.Unlock()
if err := info.Get(); err != nil {
c.Log("WARNING: Failed Get for resource %q: %s", info.Name, err)
missing = append(missing, fmt.Sprintf("%v\t\t%s", info.Mapping.Resource, info.Name))
return nil
}
//Get the relation pods
objs, err = c.getSelectRelationPod(info, objs)

Loading…
Cancel
Save