From d40452779100bc1a4aa0a9242a1159df6f2b2bf1 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Fri, 22 Apr 2016 12:30:42 +0200 Subject: [PATCH] [utils] Fix installation with new qsetup --- beat/web/utils/management/commands/install.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/beat/web/utils/management/commands/install.py b/beat/web/utils/management/commands/install.py index 01bc629b7..e00aface1 100644 --- a/beat/web/utils/management/commands/install.py +++ b/beat/web/utils/management/commands/install.py @@ -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']: -- GitLab