Merge "Cluster code looks for wrong field in request for volume type"

This commit is contained in:
Jenkins 2016-09-14 16:35:48 +00:00 committed by Gerrit Code Review
commit 92a78ea5e5
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
---
fixes:
- Allow specification of volume-type on cluster create. (Bug 1623005)

View File

@ -161,7 +161,7 @@ class ClusterController(wsgi.Controller):
modules = None
if 'volume' in node:
volume_size = int(node['volume']['size'])
volume_type = node['volume'].get('volume_type')
volume_type = node['volume'].get('type')
if 'nics' in node:
nics = node['nics']
if 'availability_zone' in node: