VMM/cli/subcommands: domain_add: Fixed a coding error. v0.7.x
authorPascal Volk <user@localhost.localdomain.org>
Sun, 13 Jan 2013 17:24:01 +0000
branchv0.7.x
changeset 685 c6024bc1de0f
parent 684 083d36f53297
child 686 5f4abdab738e
VMM/cli/subcommands: domain_add: Fixed a coding error.
VirtualMailManager/cli/subcommands.py
--- a/VirtualMailManager/cli/subcommands.py	Sun Jan 13 15:41:13 2013 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Sun Jan 13 17:24:01 2013 +0000
@@ -166,7 +166,7 @@
 def domain_add(ctx):
     """create a new domain"""
     fqdn = ctx.args.fqdn.lower()
-    transport = ctx.args.transport.lower if ctx.args.transport else None
+    transport = ctx.args.transport.lower() if ctx.args.transport else None
     ctx.hdlr.domain_add(fqdn, transport)
     if ctx.cget('domain.auto_postmaster'):
         w_std(_('Creating account for postmaster@%s') % fqdn)