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:
parent
d3137acde4
commit
72330ac568
@ -0,0 +1,3 @@
|
||||
---
|
||||
fixes:
|
||||
- Allow specification of volume-type on cluster create. (Bug 1623005)
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user