Remove unnecessary setting of default node_count
Wsme 0.8.0 has set node_count's default value when node_count is ommitted. Change-Id: Iac4115974ef4a887f7c01b8ab7934d8d3d5ac07a Related-Bug: #1465097
This commit is contained in:
parent
bc03f216d8
commit
2b171dfa88
|
@ -281,9 +281,6 @@ class BaysController(rest.RestController):
|
|||
bay_dict.get('baymodel_id'))
|
||||
bay_dict['project_id'] = context.project_id
|
||||
bay_dict['user_id'] = context.user_id
|
||||
# NOTE(suro-patz): Apply default node_count is 1, None -> 1
|
||||
if bay_dict.get('node_count', None) is None:
|
||||
bay_dict['node_count'] = 1
|
||||
if bay_dict.get('name', None) is None:
|
||||
bay_dict['name'] = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue