From 64349af7bae1255b2c85c634564e6b806fe73ccb Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 25 Apr 2016 12:56:11 +0200 Subject: [PATCH] [utils] Fix installation command --- beat/web/utils/management/commands/install.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/beat/web/utils/management/commands/install.py b/beat/web/utils/management/commands/install.py index 2fd0772e7..8e8cba72e 100644 --- a/beat/web/utils/management/commands/install.py +++ b/beat/web/utils/management/commands/install.py @@ -1041,9 +1041,11 @@ class Command(BaseCommand): add_group('Default') # Sets up the queue and environments - queue, environment = \ - setup_environment(arguments['queue_configuration'], - arguments['verbosity']) + setup_environment(arguments['queue_configuration'], + arguments['verbosity']) + from ....backend.models import Environment, Queue + environment = Environment.objects.first() + queue = Queue.objects.first() # Iterates over projects to install for project in ['system'] + arguments['project']: -- GitLab