From b80ec95fa8e16345b356d40726bd1ce41d1aeef9 Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Fri, 21 Nov 2025 14:41:03 -0600 Subject: [PATCH] update regex, revert to default will allow setting value back to '' | None --- salt/elasticsearch/soc_elasticsearch.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/salt/elasticsearch/soc_elasticsearch.yaml b/salt/elasticsearch/soc_elasticsearch.yaml index 27d5654b5..7fd4f8329 100644 --- a/salt/elasticsearch/soc_elasticsearch.yaml +++ b/salt/elasticsearch/soc_elasticsearch.yaml @@ -149,7 +149,7 @@ elasticsearch: max_primary_shard_size: title: max shard size description: Desired shard size in gb/tb/pb eg. 100gb. Note that this value is only used when the shrink method selected is 'SIZE'. - regex: ^(?:[0-9]+(?:gb|tb|pb)|)$ + regex: ^[0-9]+(?:gb|tb|pb)$ global: True forcedType: string advanced: True @@ -222,7 +222,7 @@ elasticsearch: max_primary_shard_size: title: max shard size description: Desired shard size in gb/tb/pb eg. 100gb. Note that this value is only used when the shrink method selected is 'SIZE'. - regex: ^(?:[0-9]+(?:gb|tb|pb)|)$ + regex: ^[0-9]+(?:gb|tb|pb)$ global: True forcedType: string advanced: True @@ -398,7 +398,7 @@ elasticsearch: max_primary_shard_size: title: max shard size description: Desired shard size in gb/tb/pb eg. 100gb. Note that this value is only used when the shrink method selected is 'SIZE'. - regex: ^(?:[0-9]+(?:gb|tb|pb)|)$ + regex: ^[0-9]+(?:gb|tb|pb)$ global: True forcedType: string advanced: True @@ -465,7 +465,7 @@ elasticsearch: max_primary_shard_size: title: max shard size description: Desired shard size in gb/tb/pb eg. 100gb. Note that this value is only used when the shrink method selected is 'SIZE'. - regex: ^(?:[0-9]+(?:gb|tb|pb)|)$ + regex: ^[0-9]+(?:gb|tb|pb)$ global: True forcedType: string advanced: True