summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchestack <wangbo_bupt@163.com>2017-08-23 16:12:22 +0800
committerchestack <wangbo_bupt@163.com>2017-08-23 16:12:22 +0800
commitafa32e8672a2a846eaeaa2cf9a5f1a238328e3e2 (patch)
tree3bd8d63aa9cdbc6d75a0321ce75361a184b00a48
parent46255dd4b16eccd34b9f53fc5e3dc32eaa62ce55 (diff)
Trivial typo fix5.0.0
found it when work on something else Change-Id: Ie13544fb4fb5ab8a8ebf0e2c0c6b02d87cebb189
Notes
Notes (review): Code-Review+2: Spyros Trigazis (strigazi) <strigazi@gmail.com> Workflow+1: Spyros Trigazis (strigazi) <strigazi@gmail.com> Code-Review+1: yang wang <wangy@rc.inesa.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 23 Aug 2017 11:23:13 +0000 Reviewed-on: https://review.openstack.org/496542 Project: openstack/magnum Branch: refs/heads/master
-rwxr-xr-xmagnum/api/controllers/v1/bay.py2
-rw-r--r--magnum/api/controllers/v1/baymodel.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/magnum/api/controllers/v1/bay.py b/magnum/api/controllers/v1/bay.py
index c39ae8f..7c1fe0f 100755
--- a/magnum/api/controllers/v1/bay.py
+++ b/magnum/api/controllers/v1/bay.py
@@ -433,7 +433,7 @@ class BaysController(base.Controller):
433 bay_dict['project_id'] = context.project_id 433 bay_dict['project_id'] = context.project_id
434 bay_dict['user_id'] = context.user_id 434 bay_dict['user_id'] = context.user_id
435 # NOTE(yuywz): We will generate a random human-readable name for 435 # NOTE(yuywz): We will generate a random human-readable name for
436 # bay if the name is not spcified by user. 436 # bay if the name is not specified by user.
437 name = bay_dict.get('name') or self._generate_name_for_bay(context) 437 name = bay_dict.get('name') or self._generate_name_for_bay(context)
438 bay_dict['name'] = name 438 bay_dict['name'] = name
439 bay_dict['coe_version'] = None 439 bay_dict['coe_version'] = None
diff --git a/magnum/api/controllers/v1/baymodel.py b/magnum/api/controllers/v1/baymodel.py
index 7e229e4..fb9b268 100644
--- a/magnum/api/controllers/v1/baymodel.py
+++ b/magnum/api/controllers/v1/baymodel.py
@@ -345,7 +345,7 @@ class BayModelsController(base.Controller):
345 raise exception.ClusterTemplatePublishDenied() 345 raise exception.ClusterTemplatePublishDenied()
346 346
347 # NOTE(yuywz): We will generate a random human-readable name for 347 # NOTE(yuywz): We will generate a random human-readable name for
348 # baymodel if the name is not spcified by user. 348 # baymodel if the name is not specified by user.
349 arg_name = baymodel_dict.get('name') 349 arg_name = baymodel_dict.get('name')
350 name = arg_name or self._generate_name_for_baymodel(context) 350 name = arg_name or self._generate_name_for_baymodel(context)
351 baymodel_dict['name'] = name 351 baymodel_dict['name'] = name