Skip to content

Commit

Permalink
fix print
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiccini committed Sep 11, 2024
1 parent 764556c commit f4d14c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/core/openstackversion_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"os"
"strings"
"fmt"

k8s_errors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -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))

Check failure on line 180 in controllers/core/openstackversion_controller.go

View workflow job for this annotation

GitHub Actions / call-build-workflow / openstack-operator-bundle

fmt.Sprintf format %s has arg defaults of wrong type *github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1.ContainerDefaults
if instance.Status.ContainerImageVersionDefaults == nil {
instance.Status.ContainerImageVersionDefaults = make(map[string]*corev1beta1.ContainerDefaults)
}
Expand All @@ -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))

Check failure on line 195 in controllers/core/openstackversion_controller.go

View workflow job for this annotation

GitHub Actions / call-build-workflow / openstack-operator-bundle

fmt.Sprintf format %s has arg instance.Status.ContainerImages of wrong type github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1.ContainerImages

instance.Status.Conditions.MarkTrue(
corev1beta1.OpenStackVersionInitialized,
Expand Down

0 comments on commit f4d14c1

Please sign in to comment.