From 2b171dfa880be97d3fd9bc02fdfc356d02b75407 Mon Sep 17 00:00:00 2001 From: Yang Hongyang Date: Thu, 3 Dec 2015 14:45:03 +0800 Subject: [PATCH] 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 --- magnum/api/controllers/v1/bay.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/magnum/api/controllers/v1/bay.py b/magnum/api/controllers/v1/bay.py index 8d912ee775..95cd92d21b 100644 --- a/magnum/api/controllers/v1/bay.py +++ b/magnum/api/controllers/v1/bay.py @@ -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