VMM/cli/subcommands: domainservices: Don't fail when neither a
service nor the keyword force was provided.
--- 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)