wcs: update to use appropriate role class (#52513)

This commit is contained in:
Frédéric Péters 2021-03-31 19:51:15 +02:00
parent 61e3bb9c52
commit c1a6da9736
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import os
import sys
from ..qommon.ctl import Command, make_option
from wcs.roles import Role
class Cmd(Command):
@ -18,7 +17,7 @@ class Cmd(Command):
publisher = publisher.WcsPublisher.create_publisher(register_tld_names=False)
publisher.app_dir = os.path.join(publisher.app_dir, sub_options.domain)
publisher.set_config()
for role in Role.select():
for role in publisher.role_class.select():
if role.name == args[0]:
sys.exit(0)
sys.exit(1)