mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-31 00:59:30 +00:00
rbd: format log message correctly
When a `dataPool` is passed while creating a volume, there is a `%!s(MISSING)` piece added to a debug log message. When concatinating strings, the `%s` formatter is not needed. Updates: #5103 Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
72cfaaf3fc
commit
c905dd863c
@ -1586,7 +1586,7 @@ func (rv *rbdVolume) constructImageOptions(ctx context.Context) (*librbd.ImageOp
|
||||
|
||||
logMsg := fmt.Sprintf("setting image options on %s", rv)
|
||||
if rv.DataPool != "" {
|
||||
logMsg += ", data pool %s" + rv.DataPool
|
||||
logMsg += ", data pool " + rv.DataPool
|
||||
err = options.SetString(librbd.RbdImageOptionDataPool, rv.DataPool)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to set data pool: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user