Revision 28662998 snf-cyclades-app/synnefo/api/management/commands/server-create.py
b/snf-cyclades-app/synnefo/api/management/commands/server-create.py | ||
---|---|---|
37 | 37 |
from synnefo.management import common |
38 | 38 |
|
39 | 39 |
from synnefo.api import util |
40 |
from synnefo.api.servers import do_create_server
|
|
40 |
from synnefo.logic import servers
|
|
41 | 41 |
|
42 | 42 |
HELP_MSG = """ |
43 | 43 |
|
... | ... | |
98 | 98 |
if backend_id: |
99 | 99 |
backend = common.get_backend(backend_id) |
100 | 100 |
|
101 |
do_create_server(user_id, name, password, flavor, image, |
|
102 |
backend=backend) |
|
101 |
servers.create(user_id, name, password, flavor, image, |
|
102 |
backend=backend) |
Also available in: Unified diff