func (c *ClientStartConfig) importObjects(out io.Writer, locations map[string]string) error { f, err := c.Factory() if err != nil { return err } for name, location := range locations { glog.V(2).Infof("Importing %s from %s", name, location) err = openshift.ImportObjects(f, openShiftNamespace, location) if err != nil { return errors.NewError("cannot import %s", name).WithCause(err).WithDetails(c.OpenShiftHelper().OriginLog()) } } return nil }
func (c *ClientStartConfig) importObjects(out io.Writer, locations map[string]string) error { f, err := c.Factory() if err != nil { return err } for name, location := range locations { glog.V(2).Infof("Importing %s from %s", name, location) err = openshift.ImportObjects(f, openShiftNamespace, location) if err != nil { return err } } return nil }