From 1f79e43c2943d8e2e99e1a4460836235e85aeeae Mon Sep 17 00:00:00 2001 From: Markus Wennrich Date: Tue, 27 Apr 2021 13:11:59 +0200 Subject: [PATCH] fix --addtag for vgcreate (#50) * fix --addtag Resolves #49 --- pkg/lvm/lvm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/lvm/lvm.go b/pkg/lvm/lvm.go index c741ec3e..d375e8c4 100644 --- a/pkg/lvm/lvm.go +++ b/pkg/lvm/lvm.go @@ -478,7 +478,7 @@ func CreateVG(name string, devicesPattern string) (string, error) { args := []string{"-v", name} args = append(args, physicalVolumes...) for _, tag := range tags { - args = append(args, "--add-tag", tag) + args = append(args, "--addtag", tag) } klog.Infof("create vg with command: vgcreate %v", args) cmd := exec.Command("vgcreate", args...) @@ -529,7 +529,7 @@ func CreateLVS(ctx context.Context, vg string, name string, size uint64, lvmType tags := []string{"lv.metal-stack.io/csi-lvm-driver"} for _, tag := range tags { - args = append(args, "--add-tag", tag) + args = append(args, "--addtag", tag) } args = append(args, vg) klog.Infof("lvcreate %s", args)