ganesha_conf = GaneshaConf.instance(cluster_id)
if not ganesha_conf.has_export(export_id):
- raise cherrypy.HTTPError(404)
+ raise cherrypy.HTTPError(404) # pragma: no cover - the handling is too obvious
if fsal['name'] not in Ganesha.fsals_available():
raise NFSException("Cannot make modifications to this export. "
ganesha_conf = GaneshaConf.instance(cluster_id)
if not ganesha_conf.has_export(export_id):
- raise cherrypy.HTTPError(404)
-
+ raise cherrypy.HTTPError(404) # pragma: no cover - the handling is too obvious
export = ganesha_conf.remove_export(export_id)
if reload_daemons:
ganesha_conf.reload_daemons(export.daemons)
return Ganesha.fsals_available()
@Endpoint('GET', '/lsdir')
- def lsdir(self, root_dir=None, depth=1):
+ def lsdir(self, root_dir=None, depth=1): # pragma: no cover
if root_dir is None:
root_dir = "/"
depth = int(depth)