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)
(cherry picked from commit 2d1b0a7f8a188b546b5f54fb1fd5372d7f47b350)
(cherry picked from commit ced957d7424b237afe3a010a1aacc20d24e6cf9f)
Reviewed: https:/ /review. opendev. org/c/openstack /puppet- swift/+ /857063 /opendev. org/openstack/ puppet- swift/commit/ dd894095338f8fa dae813028f4ff0f cc2542e0e2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit dd894095338f8fa dae813028f4ff0f cc2542e0e2
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) 46b5f54fb1fd537 2d7f47b350) afe3a010a1aacc2 0d24e6cf9f)
Change-Id: Ibc7479e7defbfa
(cherry picked from commit 11b193cab8f880f
(cherry picked from commit 2d1b0a7f8a188b5
(cherry picked from commit ced957d7424b237