Trivial typo fix

found it when work on something else

Change-Id: Ie13544fb4fb5ab8a8ebf0e2c0c6b02d87cebb189
This commit is contained in:
chestack 2017-08-23 16:12:22 +08:00
parent 46255dd4b1
commit afa32e8672
2 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ class BaysController(base.Controller):
bay_dict['project_id'] = context.project_id
bay_dict['user_id'] = context.user_id
# NOTE(yuywz): We will generate a random human-readable name for
# bay if the name is not spcified by user.
# bay if the name is not specified by user.
name = bay_dict.get('name') or self._generate_name_for_bay(context)
bay_dict['name'] = name
bay_dict['coe_version'] = None

View File

@ -345,7 +345,7 @@ class BayModelsController(base.Controller):
raise exception.ClusterTemplatePublishDenied()
# NOTE(yuywz): We will generate a random human-readable name for
# baymodel if the name is not spcified by user.
# baymodel if the name is not specified by user.
arg_name = baymodel_dict.get('name')
name = arg_name or self._generate_name_for_baymodel(context)
baymodel_dict['name'] = name