diff --git a/cmd/vm_cp.go b/cmd/vm_cp.go index fb58ae0..5e4463e 100644 --- a/cmd/vm_cp.go +++ b/cmd/vm_cp.go @@ -1,8 +1,6 @@ package cmd import ( - "context" - "github.com/LINBIT/virter/pkg/netcopy" log "github.com/sirupsen/logrus" @@ -27,7 +25,7 @@ func vmCpCommand() *cobra.Command { copier := netcopy.NewRsyncNetworkCopier() - if err := v.VMExecCopy(context.TODO(), copier, sourceSpec, destSpec); err != nil { + if err := v.VMExecCopy(cmd.Context(), copier, sourceSpec, destSpec); err != nil { log.Fatal(err) } },