Skip to content

Commit

Permalink
fix --addtag for vgcreate (#50)
Browse files Browse the repository at this point in the history
* fix --addtag

Resolves #49
  • Loading branch information
mwennrich authored Apr 27, 2021
1 parent b0bfb29 commit 1f79e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lvm/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1f79e43

Please sign in to comment.