Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
39e47e6f
Commit
39e47e6f
authored
Sep 16, 2013
by
Giorgos Korfiatis
Browse files
cyclades: Fix unbound reference
Set backend to None if not specified.
parent
a9119b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/management/commands/server-create.py
View file @
39e47e6f
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment