Skip to content

Commit fa620a1

Browse files
committed
cinder-csi-plugin, manila-csi-plugin: Correct formatting character
%T prints the type. %t prints the word true/false, which is what we want. [1] [1] https://pkg.go.dev/fmt Conflicts: pkg/csi/manila/driver.go NOTE(stephenfin): Merge conflicts are due to the absence of PR #2734, which we don't want to backport. Signed-off-by: Stephen Finucane <[email protected]>
1 parent f574d06 commit fa620a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/csi/cinder/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func NewDriver(o *DriverOpts) *Driver {
8888
klog.Info("Driver: ", d.name)
8989
klog.Info("Driver version: ", d.fqVersion)
9090
klog.Info("CSI Spec version: ", specVersion)
91-
klog.Infof("Topology awareness: %T", d.withTopology)
91+
klog.Infof("Topology awareness: %t", d.withTopology)
9292

9393
d.AddControllerServiceCapabilities(
9494
[]csi.ControllerServiceCapability_RPC_Type{

pkg/csi/manila/driver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func NewDriver(o *DriverOpts) (*Driver, error) {
127127
klog.Info("Driver: ", d.name)
128128
klog.Info("Driver version: ", d.fqVersion)
129129
klog.Info("CSI spec version: ", specVersion)
130+
klog.Infof("Topology awareness: %t", d.withTopology)
130131

131132
getShareAdapter(d.shareProto) // The program will terminate with a non-zero exit code if the share protocol selector is wrong
132133
klog.Infof("Operating on %s shares", d.shareProto)

0 commit comments

Comments
 (0)