mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
Merge pull request #3955 from alrs/fix-restore-err
pkg/restore: fix dropped error
This commit is contained in:
@@ -54,6 +54,9 @@ func (a *InitRestoreHookPodAction) Execute(input *velero.RestoreItemActionExecut
|
||||
}
|
||||
hookHandler := hook.InitContainerRestoreHookHandler{}
|
||||
postHooksItem, err := hookHandler.HandleRestoreHooks(a.logger, kuberesource.Pods, input.Item, restoreHooks)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
a.logger.Infof("Returning from InitRestoreHookPodAction")
|
||||
|
||||
return velero.NewRestoreItemActionExecuteOutput(&unstructured.Unstructured{Object: postHooksItem.UnstructuredContent()}), nil
|
||||
|
||||
Reference in New Issue
Block a user