Commit c73783a7 authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

refactor: remove DeviceOptHandler inheritance of DirOptHandler



DirOptHandler, the command handler for directory, only executes medium
commands.

Change-Id: I67b221a627c226cdf1c5336962587acdee288b75
Signed-off-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6706


Reviewed-by: Linter
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
Reviewed-by: default avatarPatrice LUCAS <patrice.lucas@cea.fr>
Reviewed-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
parent bed22631
......@@ -894,12 +894,11 @@ class MediaOptHandler(BaseResourceOptHandler):
self.logger.info("%d media(s) unlocked" % len(results))
class DirOptHandler(MediaOptHandler, DeviceOptHandler):
class DirOptHandler(MediaOptHandler):
"""Directory-related options and actions."""
label = 'dir'
descr = 'handle directories'
family = ResourceFamily(ResourceFamily.RSC_DIR)
verbs = MediaOptHandler.verbs
def exec_add(self):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment