Fix nul pointer error

Closes #7812

Signed-off-by: Matt Farina <matt@mattfarina.com>
pull/7840/head
Matt Farina 6 years ago
parent e0604b9306
commit 88e95b0d7c
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -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