Skip to content

Commit fdbba52

Browse files
stephenfinmandre
authored andcommitted
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 kubernetes#2734, which we don't want to backport. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 822bbd7 commit fdbba52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/csi/cinder/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func NewDriver(o *DriverOpts) *Driver {
101101
klog.Info("Driver: ", d.name)
102102
klog.Info("Driver version: ", d.fqVersion)
103103
klog.Info("CSI Spec version: ", specVersion)
104-
klog.Infof("Topology awareness: %T", d.withTopology)
104+
klog.Infof("Topology awareness: %t", d.withTopology)
105105

106106
d.AddControllerServiceCapabilities(
107107
[]csi.ControllerServiceCapability_RPC_Type{

pkg/csi/manila/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func NewDriver(o *DriverOpts) (*Driver, error) {
130130
klog.Info("Driver: ", d.name)
131131
klog.Info("Driver version: ", d.fqVersion)
132132
klog.Info("CSI spec version: ", specVersion)
133-
klog.Infof("Topology awareness: %T", d.withTopology)
133+
klog.Infof("Topology awareness: %t", d.withTopology)
134134

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

0 commit comments

Comments
 (0)