VMM/cli/subcommands: domainservices: Don't fail when neither a v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 04 Nov 2011 03:25:29 +0000
branchv0.6.x
changeset 448 45c917e6a386
parent 447 c31d604e26d3
child 449 6826acb9b0a7
VMM/cli/subcommands: domainservices: Don't fail when neither a service nor the keyword force was provided.
VirtualMailManager/cli/subcommands.py
--- a/VirtualMailManager/cli/subcommands.py	Fri Nov 04 02:20:01 2011 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Fri Nov 04 03:25:29 2011 +0000
@@ -330,7 +330,9 @@
         usage(EX_MISSING_ARGS, _(u'Missing domain name.'), ctx.scmd)
     services = []
     force = False
-    if ctx.argc is 4:
+    if ctx.argc is 3:
+        pass
+    elif ctx.argc is 4:
         arg = ctx.args[3].lower()
         if arg in SERVICES:
             services.append(arg)