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

[utils] Fix installation with new qsetup

parent fe494c94
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -130,11 +130,11 @@ def add_group(name):
return group
def setup_environment(queue_config_filename):
def setup_environment(queue_config_filename, verbosity):
from .qsetup import setup_environment as _method
return _method(queue_config_filename, logger)
from django.core.management import call_command
call_command('qsetup', verbosity=verbosity, reset=True,
config=queue_config_filename)
def create_sites():
......@@ -920,7 +920,7 @@ class Command(BaseCommand):
# Sync database
from django.core.management import call_command
call_command('migrate', interactive=False, verbose=1)
call_command('migrate', interactive=False, verbosity=1)
# Setup sites: 1.Development; 2.Staging; 3.Production
create_sites()
......@@ -935,7 +935,8 @@ class Command(BaseCommand):
# Sets up the queue and environments
queue, environment = \
setup_environment(arguments['queue_configuration'])
setup_environment(arguments['queue_configuration'],
arguments['verbosity'])
# Iterates over projects to install
for project in ['system'] + arguments['project']:
......
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