# HG changeset patch
# User Pascal Volk <neverseen@users.sourceforge.net>
# Date 1320377129 0
# Node ID 45c917e6a386bdf36b95c82a7a18d89475de2adb
# Parent  c31d604e26d37741aee975fdace444f555e32f3d
VMM/cli/subcommands: domainservices: Don't fail when neither a
service nor the keyword force was provided.

diff -r c31d604e26d3 -r 45c917e6a386 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)