diff --git a/internal/controller/nnf_clientmount_controller.go b/internal/controller/nnf_clientmount_controller.go index adfef8dc..445bd523 100644 --- a/internal/controller/nnf_clientmount_controller.go +++ b/internal/controller/nnf_clientmount_controller.go @@ -305,7 +305,7 @@ func (r *NnfClientMountReconciler) changeMount(ctx context.Context, clientMount func (r *NnfClientMountReconciler) dumpServersToFile(ctx context.Context, clientMount *dwsv1alpha2.ClientMount, path string, uid, gid uint32) error { // Get the NnfServers Resource - server, err := getServerForClientMountOrNnfNodeStorage(ctx, r.Client, clientMount.Labels) + server, err := getServerForClientMountOrNnfNodeStorage(ctx, r.Client, clientMount.GetLabels()) if err != nil { return dwsv1alpha2.NewResourceError("could not retrieve corresponding NnfServer resource for this ClientMount").WithError(err).WithMajor() }