Modify stack_name regular expression in Orchestration API

The stack_name in request must match some regular expression, but
the code implementation and document description is inconsistent.

Change-Id: I02c09d2624253d9ce19735dbe745ff4d3321332d
Closes-Bug: #1671126
This commit is contained in:
liyi 2017-03-09 13:24:23 +08:00 committed by liyi
parent 0e14807eb4
commit 990f484962

View File

@ -1342,7 +1342,7 @@ stack_name:
A name for the stack. The value must be unique within a project. A name for the stack. The value must be unique within a project.
The name must start with an ASCII letter and can contain ASCII letters, The name must start with an ASCII letter and can contain ASCII letters,
digits, underscores, periods, and hyphens. Specifically, the name must digits, underscores, periods, and hyphens. Specifically, the name must
match the ``^[a-zA-Z][a-zA-Z0-9_.-]*$`` regular expression. match the ``^[a-zA-Z][a-zA-Z0-9_.-]{0,254}$`` regular expression.
When you delete or abandon a stack, its name will not become available When you delete or abandon a stack, its name will not become available
for reuse until the deletion completes successfully. for reuse until the deletion completes successfully.
@ -1354,7 +1354,7 @@ stack_name_request:
A name for the stack. The value must be unique within a project. A name for the stack. The value must be unique within a project.
The name must start with an ASCII letter and can contain ASCII letters, The name must start with an ASCII letter and can contain ASCII letters,
digits, underscores, periods, and hyphens. Specifically, the name must digits, underscores, periods, and hyphens. Specifically, the name must
match the ``^[a-zA-Z][a-zA-Z0-9_.-]*$`` regular expression. match the ``^[a-zA-Z][a-zA-Z0-9_.-]{0,254}$`` regular expression.
When you delete or abandon a stack, its name will not become available When you delete or abandon a stack, its name will not become available
for reuse until the deletion completes successfully. for reuse until the deletion completes successfully.