From 1e421da13b9f44de3a1f4a3980f4ff0bee2e9717 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 8 Apr 2014 10:11:01 +0200 Subject: Fixed 'lmi storage mount delete ' --- commands/storage/lmi/scripts/storage/cmd/mount.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 option, but docopt passes it as array + (because in other commands it is used with '...'). So let's + transform it to scalar. + """ + options[''] = options.pop('')[0] + + def execute(self, ns, target): """ Implementation of 'mount delete' command. -- cgit