Skip to content

Commit bbe6e24

Browse files
authored
Update authmanager.go (#3111)
Fixed a string concatenation issue resulting in and incorrect debug log string.
1 parent c5638df commit bbe6e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/csi/service/common/authmanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func getDatastoresWithBlockVolumePrivs(ctx context.Context, vc *cnsvsphere.Virtu
357357
}
358358
if len(result) != 0 && len(dsURLToInfoMap) == 0 {
359359
log.Infof("auth manager: user %s on vCenter %q doesn't have privileges for any datastore. "+
360-
"HasUserPrivilegeOnEntities returns %v, when checking privileges %v on entities %v."+
360+
"HasUserPrivilegeOnEntities returns %v, when checking privileges %v on entities %v.",
361361
userName, vc.Config.Host, result, privIds, entities)
362362
}
363363
return dsURLToInfoMap, nil
@@ -470,7 +470,7 @@ func getFSEnabledClustersWithPriv(ctx context.Context, vc *cnsvsphere.VirtualCen
470470
}
471471
if len(result) != 0 && len(clusterComputeResourceWithPriv) == 0 {
472472
log.Infof("auth manager: user %s on vCenter %q doesn't have privileges for any ClusterComputeResource. "+
473-
"HasUserPrivilegeOnEntities returns %v, when checking privileges %v on entities %v."+
473+
"HasUserPrivilegeOnEntities returns %v, when checking privileges %v on entities %v.",
474474
userName, vc.Config.Host, result, privIds, entities)
475475
} else {
476476
log.Debugf("Clusters with priv: %s and vCenter: %q are : %+v", HostConfigStoragePriv,

0 commit comments

Comments
 (0)