Cluster code looks for wrong field in request for volume type

The cluster code on the server side is looking for a field called
'volume_type' in the request. The correct field should be 'type'.

Closes-Bug: #1623005
Change-Id: I5f46b887e028819dcd2d18da6390d38401528194
Author:    chenshujuan <chenshujuan@chinac.com>
Owner:    chenshujuan <chenshujuan@chinac.com>
This commit is contained in:
chenshujuan 2016-09-14 15:38:29 +08:00 committed by Amrith Kumar
parent d3137acde4
commit 72330ac568
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

@ -160,7 +160,7 @@ class ClusterController(wsgi.Controller):
volume_size = volume_type = nics = availability_zone = 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: