Commit 39e47e6f authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

cyclades: Fix unbound reference

Set backend to None if not specified.
parent a9119b86
......@@ -97,6 +97,8 @@ class Command(BaseCommand):
image = common.get_image(image_id, user_id)
if backend_id:
backend = common.get_backend(backend_id)
else:
backend = None
do_create_server(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