From 248fa193dbb55fecd0d18ddfdb63bb9a6fa06487 Mon Sep 17 00:00:00 2001 From: Josh Patterson Date: Thu, 3 Dec 2026 16:35:11 -0500 Subject: [PATCH] Say whole number in the lsheap and esheap validation message The regex only accepts whole numbers, so 1.5g is rejected; the message now says so. --- salt/elasticsearch/soc_elasticsearch.yaml | 2 +- salt/logstash/soc_logstash.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/elasticsearch/soc_elasticsearch.yaml b/salt/elasticsearch/soc_elasticsearch.yaml index ac2c5d9da..c8ae124de 100644 --- a/salt/elasticsearch/soc_elasticsearch.yaml +++ b/salt/elasticsearch/soc_elasticsearch.yaml @@ -20,7 +20,7 @@ elasticsearch: description: Heap size to use for Elasticsearch, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 600m. forcedType: string regex: ^[1-9][0-9]*[kKmMgG]$ - regexFailureMessage: Must be a number followed by k, m or g, such as 600m. + regexFailureMessage: Must be a whole number followed by k, m or g, such as 600m. helpLink: elasticsearch index_clean: description: Determines if indices should be considered for deletion by available disk space in the cluster. Otherwise, data is retained by the configured lifecycle settings. This setting only applies to EVAL, STANDALONE, and HEAVY NODE installations. Other installations use lifecycle settings only. diff --git a/salt/logstash/soc_logstash.yaml b/salt/logstash/soc_logstash.yaml index 09c1a3298..9213a9d76 100644 --- a/salt/logstash/soc_logstash.yaml +++ b/salt/logstash/soc_logstash.yaml @@ -407,7 +407,7 @@ logstash: description: Heap size to use for Logstash, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 500m. forcedType: string regex: ^[1-9][0-9]*[kKmMgG]$ - regexFailureMessage: Must be a number followed by k, m or g, such as 500m. + regexFailureMessage: Must be a whole number followed by k, m or g, such as 500m. helpLink: logstash global: False config: