summaryrefslogtreecommitdiffstats
path: root/commands/storage/lmi/scripts/storage/cmd/mount.py
diff options
context:
space:
mode:
Diffstat (limited to 'commands/storage/lmi/scripts/storage/cmd/mount.py')
-rw-r--r--commands/storage/lmi/scripts/storage/cmd/mount.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/commands/storage/lmi/scripts/storage/cmd/mount.py b/commands/storage/lmi/scripts/storage/cmd/mount.py
index 3a3c9ed..c59d7cc 100644
--- a/commands/storage/lmi/scripts/storage/cmd/mount.py
+++ b/commands/storage/lmi/scripts/storage/cmd/mount.py
@@ -201,6 +201,15 @@ class MountCreate(command.LmiCheckResult):
class MountDelete(command.LmiCheckResult):
EXPECT = None
+ def transform_options(self, options):
+ """
+ There is only one <target> option, but docopt passes it as array
+ (because in other commands it is used with '...'). So let's
+ transform it to scalar.
+ """
+ options['<target>'] = options.pop('<target>')[0]
+
+
def execute(self, ns, target):
"""
Implementation of 'mount delete' command.