Skip to content
Snippets Groups Projects
Commit c9aa79ee authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Minor cleanup

parent 139b0da2
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -104,7 +104,7 @@ class Command(BaseCommand):
default=False, help='Delete all environment/worker/queues ' \
'before setting the given configuration')
parser.add_argument('qconfig', type=str, nargs='?',
parser.add_argument('config', type=str, nargs='?',
help='Optional custom queue configuration to use. If not ' \
'passed, uses an internal default with a single ' \
'queue/worker/%d slots' % CORES)
......@@ -128,8 +128,8 @@ class Command(BaseCommand):
setup_backend(RESET_CONFIGURATION)
config = None
if arguments['qconfig']:
with open(arguments['qconfig'], 'rb') as f:
if arguments['config']:
with open(arguments['config'], 'rb') as f:
config = simplejson.load(f)
setup_backend(config or DEFAULT_CONFIGURATION)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment