Skip to content

Commit

Permalink
cephfs: fix network fencing admin id
Browse files Browse the repository at this point in the history
this commit replaces user id requirement with
admin id

Signed-off-by: Riya Singhal <rsinghal@redhat.com>
(cherry picked from commit 51faa2a)
  • Loading branch information
riya-singhal31 authored and mergify[bot] committed Dec 14, 2023
1 parent 9d9b67b commit 575484a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/csi-addons/cephfs/network_fence.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (fcs *FenceControllerServer) FenceClusterNetwork(
return nil, status.Error(codes.InvalidArgument, err.Error())
}

cr, err := util.NewUserCredentials(req.GetSecrets())
cr, err := util.NewAdminCredentials(req.GetSecrets())
if err != nil {
return nil, status.Error(codes.InvalidArgument, err.Error())
}
Expand Down Expand Up @@ -100,7 +100,7 @@ func (fcs *FenceControllerServer) UnfenceClusterNetwork(
return nil, status.Error(codes.InvalidArgument, err.Error())
}

cr, err := util.NewUserCredentials(req.GetSecrets())
cr, err := util.NewAdminCredentials(req.GetSecrets())
if err != nil {
return nil, status.Error(codes.InvalidArgument, err.Error())
}
Expand Down

0 comments on commit 575484a

Please sign in to comment.