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

cyclades: Fix typo bug in management command

parent 39245422
......@@ -36,7 +36,6 @@ from optparse import make_option
from import BaseCommand, CommandError
from import common
from synnefo.api import util
from synnefo.logic import servers
HELP_MSG = """
......@@ -97,6 +96,8 @@ class Command(BaseCommand):
image = common.get_image(image_id, user_id)
if backend_id:
backend = common.get_backend(backend_id)
backend = None
servers.create(user_id, name, password, flavor, image,
......@@ -142,6 +142,11 @@ def create(userid, name, password, flavor, image, metadata={},
if private_networks is None:
private_networks = []
if floating_ips is None:
floating_ips = []
# Fix flavor for archipelago
disk_template, provider = util.get_flavor_provider(flavor)
if provider:
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