Fix type validation warning for storage policy rings
Since 63688a14e57282ae97072b406c81d0da2f61965c was merged, this module
support configuring storage policies.
When multiple storage policies are used, we need to create multiple
object rings like object.ring.gz, object-1.ring.gz. However the current
regexp to validate the ring name does not consider this format and
shows the type validation warning when creating a non-default policy
rings.
This change updates the regexp used in validation to accept that
object-<number> format as well.
Closes-Bug: #1987260
Change-Id: Ibc7479e7defbfa4c49bf3c9f1574cdcf61b90ab9
(cherry picked from commit 11b193cab8f880f1b73c57208646a889979e6fd8)
Reviewed: https:/ /review. opendev. org/c/openstack /puppet- swift/+ /854538 /opendev. org/openstack/ puppet- swift/commit/ 2d1b0a7f8a188b5 46b5f54fb1fd537 2d7f47b350
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 2d1b0a7f8a188b5 46b5f54fb1fd537 2d7f47b350
Author: Takashi Kajinami <email address hidden>
Date: Mon Aug 22 17:11:34 2022 +0900
Fix type validation warning for storage policy rings
Since 63688a14e57282a e97072b406c81d0 da2f61965c was merged, this module
support configuring storage policies.
When multiple storage policies are used, we need to create multiple
object rings like object.ring.gz, object-1.ring.gz. However the current
regexp to validate the ring name does not consider this format and
shows the type validation warning when creating a non-default policy
rings.
This change updates the regexp used in validation to accept that
object-<number> format as well.
Closes-Bug: #1987260 4c49bf3c9f1574c dcf61b90ab9 1b73c57208646a8 89979e6fd8)
Change-Id: Ibc7479e7defbfa
(cherry picked from commit 11b193cab8f880f