Skip to content

Commit

Permalink
Update arguments of namspaced Execute()
Browse files Browse the repository at this point in the history
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit authored and innobead committed Mar 7, 2024
1 parent bdc453c commit 61eb191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proxy/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (p *Proxy) RemountReadOnlyVolume(ctx context.Context, req *rpc.RemountVolum
"remount,rw",
mp.Path,
}
if _, err := nsexec.Execute("mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil {
if _, err := nsexec.Execute(nil, "mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil {
return nil, grpcstatus.Errorf(grpccodes.Internal, "remount failed with error: %v", err)
}
}
Expand Down

0 comments on commit 61eb191

Please sign in to comment.