diff --git a/cmd/disk_wipe.go b/cmd/disk_wipe.go index 7dae379..18c272a 100644 --- a/cmd/disk_wipe.go +++ b/cmd/disk_wipe.go @@ -9,6 +9,7 @@ import ( "github.com/bmc-toolbox/common" "github.com/metal-toolbox/ironlib" "github.com/metal-toolbox/ironlib/actions" + "github.com/metal-toolbox/ironlib/utils" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -72,6 +73,11 @@ func init() { // Pick the most appropriate wipe based on the disk type and/or features supported var wiper actions.DriveWiper + switch drive.Protocol { + case "nvme": + wiper = utils.NewNvmeCmd(verbose) + } + if wiper == nil { l.Fatal("failed find appropriate wiper drive") }