Skip to content

Commit eb4ff66

Browse files
authored
Merge pull request kubernetes#80033 from qingsenLi/k8s-190711
use klog.Error instead of klog.Errorf when had no format
2 parents b67acd3 + ca53c3a commit eb4ff66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cloudprovider/providers/openstack/openstack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,13 @@ func setConfigFromSecret(cfg *Config) error {
297297
if content, ok := secret.Data["clouds.conf"]; ok {
298298
err = gcfg.ReadStringInto(cfg, string(content))
299299
if err != nil {
300-
klog.Errorf("Cannot parse data from the secret.")
300+
klog.Error("Cannot parse data from the secret.")
301301
return fmt.Errorf("cannot parse data from the secret")
302302
}
303303
return nil
304304
}
305305

306-
klog.Errorf("Cannot find \"clouds.conf\" key in the secret.")
306+
klog.Error("Cannot find \"clouds.conf\" key in the secret.")
307307
return fmt.Errorf("cannot find \"clouds.conf\" key in the secret")
308308
}
309309

pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(ctx context.Context, clusterName string
698698
internal := getStringFromServiceAnnotation(apiService, ServiceAnnotationLoadBalancerInternal, "false")
699699
switch internal {
700700
case "true":
701-
klog.V(4).Infof("Ensure an internal loadbalancer service.")
701+
klog.V(4).Info("Ensure an internal loadbalancer service.")
702702
internalAnnotation = true
703703
case "false":
704704
if len(floatingPool) != 0 {

0 commit comments

Comments
 (0)