mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-18 22:14:29 +00:00
Merge pull request #7566 from kaovilai/biaOperationErrorsPluginName
Add confirm flag to velero plugin add
This commit is contained in:
@@ -31,6 +31,7 @@ import (
|
||||
"github.com/vmware-tanzu/velero/pkg/client"
|
||||
"github.com/vmware-tanzu/velero/pkg/cmd"
|
||||
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
|
||||
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
|
||||
)
|
||||
|
||||
// NewDeleteCommand creates and returns a new cobra command for deleting restores.
|
||||
@@ -66,7 +67,7 @@ func NewDeleteCommand(f client.Factory, use string) *cobra.Command {
|
||||
|
||||
// Run performs the deletion of restore(s).
|
||||
func Run(o *cli.DeleteOptions) error {
|
||||
if !o.Confirm && !cli.GetConfirmation() {
|
||||
if !o.Confirm && !confirm.GetConfirmation() {
|
||||
return nil
|
||||
}
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user