summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-08 22:39:10 -0500
committerBarry Warsaw2009-12-08 22:39:10 -0500
commit3d65590999f5288307ecb0df6ae1b77241869f61 (patch)
tree7047453b1ddfbc6d5715834553f46e3362d3e1da /src/mailman/commands/cli_lists.py
parent24f92b6c842bfa3701cb708e4aee3c991f206c9d (diff)
downloadmailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.gz
mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.zst
mailman-3d65590999f5288307ecb0df6ae1b77241869f61.zip
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: