Skip to content

Commit

Permalink
try GetLabels()
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Nov 27, 2024
1 parent 6c90121 commit a1803a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/nnf_clientmount_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit a1803a8

Please sign in to comment.