Skip to content

Commit

Permalink
Merge pull request #68 from c3y1huang/fix-ignored-value
Browse files Browse the repository at this point in the history
  • Loading branch information
derekbit authored Aug 2, 2023
2 parents f16d600 + dec3341 commit 4ec8eda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iscsi/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ func UpdateLun(tid int, lun int, params map[string]string) error {
for k, v := range params {
paramStr += fmt.Sprintf("%s=%s,", k, v)
}
strings.TrimSuffix(paramStr, ",")
opts = append(opts, "--params", paramStr)
opts = append(opts, "--params", strings.TrimSuffix(paramStr, ","))
}
_, err := util.Execute(tgtBinary, opts)
return err
Expand Down

0 comments on commit 4ec8eda

Please sign in to comment.