Fix no availability zone error

When there's no availability zone on creating server, we should
pass None instead of "" to make it work.

Change-Id: I5adbc82f120bf631c9bbf264613a0b2d0dfbaac7
This commit is contained in:
Zhenguo Niu 2017-05-09 10:06:55 +08:00
parent 93c7ad5f5b
commit 2519df8e34
1 changed files with 2 additions and 0 deletions

View File

@ -365,6 +365,8 @@ class LaunchServer(workflows.Workflow):
nics = None
avail_zone = context.get('availability_zone', None)
if not avail_zone:
avail_zone = None
try:
mogan.server_create(request,