diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index 4a4295b07d634070c2965059c03e038654b61b98..0181baf69f8a41dbcb0ecdc95bceb630d5cca440 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -115,7 +115,7 @@ func runDelete(cmd *cobra.Command, args []string) { } errs := oci.DeleteAllContainersByLabel(oci.Docker, fmt.Sprintf("%s=%s", oci.CreatedByLabelKey, "true")) if errs != nil { // it will error if there is no container to delete - glog.Infof("no left over kic container for %s found.", errs) + glog.Infof("no left over minikube container found.", errs) } errs = oci.DeleteAllVolumesByLabel(oci.Docker, fmt.Sprintf("%s=%s", oci.CreatedByLabelKey, "true")) if errs != nil { // it will not error if there is nothing to delete diff --git a/pkg/drivers/kic/oci/volumes.go b/pkg/drivers/kic/oci/volumes.go index bd748620c75949cc45ffbafe1bb4a4552bfccf74..4e15f5efa02241b37515c3a86bd9b858b0ca1080 100644 --- a/pkg/drivers/kic/oci/volumes.go +++ b/pkg/drivers/kic/oci/volumes.go @@ -65,11 +65,11 @@ func allVolumesByLabel(ociBin string, label string) ([]string, error) { cmd := exec.Command(ociBin, "volume", "ls", "--filter", "label="+label, "--format", "{{.Name}}") stdout, err := cmd.Output() outs := strings.Split(strings.Replace(string(stdout), "\r", "", -1), "\n") - var tirmOuts []string + var vols []string for _, o := range outs { - tirmOuts = append(tirmOuts, strings.TrimSpace(o)) + vols = append(vols, strings.TrimSpace(o)) } - return tirmOuts, err + return vols, err } // createDockerVolume creates a docker volume to be attached to the container with correct labels and prefixes based on profile name