summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/cli_lists.py')
-rw-r--r--src/mailman/commands/cli_lists.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py
index c7941d860..d3833c2b0 100644
--- a/src/mailman/commands/cli_lists.py
+++ b/src/mailman/commands/cli_lists.py
@@ -182,9 +182,9 @@ class Create:
# Check to see if the domain exists or not.
fqdn_listname = args.listname[0]
listname, at, domain = fqdn_listname.partition('@')
- domain_mgr = IDomainManager(config)
- if domain_mgr.get(domain) is None and args.domain:
- domain_mgr.add(domain)
+ domain_manager = getUtility(IDomainManager)
+ if domain_manager.get(domain) is None and args.domain:
+ domain_manager.add(domain)
try:
mlist = create_list(fqdn_listname, args.owners)
except InvalidEmailAddress: