Commit c5d2f02c authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug in server-create command

Function for creating a server have been moved from api to logic.
parent f7557707
......@@ -37,7 +37,7 @@ from django.core.management.base import BaseCommand, CommandError
from synnefo.management import common
from synnefo.api import util
from synnefo.api.servers import do_create_server
from synnefo.logic import servers
HELP_MSG = """
......@@ -98,5 +98,5 @@ class Command(BaseCommand):
if backend_id:
backend = common.get_backend(backend_id)
do_create_server(user_id, name, password, flavor, image,
backend=backend)
servers.create(user_id, name, password, flavor, image,
backend=backend)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment