From 59cc9a3d070dde82e46e3666cb413a71079ffe77 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 7 Apr 2014 13:08:20 +0200 Subject: Fixed 'lmi mount create' command. It does _not_ accept list of devices. --- commands/storage/lmi/scripts/storage/cmd/mount.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/commands/storage/lmi/scripts/storage/cmd/mount.py b/commands/storage/lmi/scripts/storage/cmd/mount.py index acb36df..3a3c9ed 100644 --- a/commands/storage/lmi/scripts/storage/cmd/mount.py +++ b/commands/storage/lmi/scripts/storage/cmd/mount.py @@ -192,14 +192,6 @@ class MountShow(command.LmiLister): class MountCreate(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, device, mountpoint, fs_type=None, options=None): """ Implementation of 'mount create' command. -- cgit