From f4d14c1fc10a4528c6198f562985c0e8fd817777 Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Wed, 11 Sep 2024 15:39:23 +0200 Subject: [PATCH] fix print --- controllers/core/openstackversion_controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/core/openstackversion_controller.go b/controllers/core/openstackversion_controller.go index c68c32360..acab86398 100644 --- a/controllers/core/openstackversion_controller.go +++ b/controllers/core/openstackversion_controller.go @@ -20,6 +20,7 @@ import ( "context" "os" "strings" + "fmt" k8s_errors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" @@ -176,7 +177,7 @@ func (r *OpenStackVersionReconciler) Reconcile(ctx context.Context, req ctrl.Req instance.Status.AvailableVersion = &envAvailableVersion defaults := openstack.InitializeOpenStackVersionImageDefaults(ctx, envContainerImages) - Log.Info("%s", defaults) + Log.Info(fmt.Sprintf("%s", defaults)) if instance.Status.ContainerImageVersionDefaults == nil { instance.Status.ContainerImageVersionDefaults = make(map[string]*corev1beta1.ContainerDefaults) } @@ -191,7 +192,7 @@ func (r *OpenStackVersionReconciler) Reconcile(ctx context.Context, req ctrl.Req return ctrl.Result{}, nil } instance.Status.ContainerImages = openstack.GetContainerImages(val, *instance) - Log.Info("%s", instance.Status.ContainerImages) + Log.Info(fmt.Sprintf("%s", instance.Status.ContainerImages)) instance.Status.Conditions.MarkTrue( corev1beta1.OpenStackVersionInitialized,