Comment 7 for bug 2039955

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

I'm not sure that patch is the correct fix. Looking at how other controllers for the dashboard operate, it would appear that the `NFSGanesha.status` and `NFSGaneshaCluster.list` methods should be decorated with the
@raise_if_no_orchestrator and @handle_orchestrator_error functions. Like so:

```
class NFSGanesha(RESTController):

  @EndPoint()
  @ReadPermission
  @raise_if_no_orchestrator()
  @handle_orchestrator_error('nfs')
  def status(self):
    ...
```