Fix CinderDefaultVolumeType constraints
Fix the CinderDefaultVolumeType constraints so that they match cinder's own constraints. Basically, volume type names just need at least one non-whitespace character. The name can contain leading or trailing whitespace, but it cannot be '' (zero-length) or contain only whitespace characters. The error message if the constraint isn't met is similar to cinder's error message. Resolves: rhbz#2073096 Related-Bug: #1782217 Change-Id: Ie7db672f929b21031338fe3e20ad2dfda34c231f (cherry picked from commit52bf7ee056
) (cherry picked from commitab2d2f82c2
) (cherry picked from commit7f12c44846
)
This commit is contained in:
parent
52acc68786
commit
c39286f93c
|
@ -59,10 +59,9 @@ parameters:
|
||||||
description: The name of Cinder's default volume type.
|
description: The name of Cinder's default volume type.
|
||||||
type: string
|
type: string
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_pattern: "[a-zA-Z0-9]+"
|
- allowed_pattern: ".*\\S.*"
|
||||||
description: >
|
description: >
|
||||||
The default volume type must be at least 1 character and contain only
|
The default volume type name cannot be empty.
|
||||||
letters and numbers.
|
|
||||||
CinderEnableDBPurge:
|
CinderEnableDBPurge:
|
||||||
default: true
|
default: true
|
||||||
description: |
|
description: |
|
||||||
|
|
Loading…
Reference in New Issue