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

Change-Id: I67b221a627c226cdf1c5336962587acdee288b75
Signed-off-by: default avatarSebastien Gougeaud <>

Reviewed-by: Linter
Tested-by: default avatarJenkins s8open_nr <>
Reviewed-by: default avatarPatrice LUCAS <>
Reviewed-by: default avatarThomas Leibovici <>
parent bed22631
......@@ -894,12 +894,11 @@ class MediaOptHandler(BaseResourceOptHandler):"%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