From 779216513622af5a2fcc5e1bc1cc9c2debd7829f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 27 Jan 2026 07:00:01 -1000 Subject: [PATCH] Revert "Allow setting `python::version` in hiera to `Integer`" --- REFERENCE.md | 11 +---------- types/version.pp | 12 +++++------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index def63d6a..7369552e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1208,14 +1208,5 @@ Alias of `Pattern[/^(<|>|<=|>=|==) [0-9]*(\.[0-9]+)*$/, /\Alatest\Z/]` Match all valid versions for python -Alias of - -```puppet -Variant[Integer, Pattern[ - /\A(python)?[0-9](\.?[0-9])*/, - /\Apypy\Z/, - /\Asystem\Z/, - /\Arh-python[0-9]{2}(?:-python)?\Z/ - ]] -``` +Alias of `Pattern[/\A(python)?[0-9](\.?[0-9])*/, /\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/]` diff --git a/types/version.pp b/types/version.pp index 075d3587..5bbcaaa8 100644 --- a/types/version.pp +++ b/types/version.pp @@ -1,10 +1,8 @@ # @summary Match all valid versions for python # -type Python::Version = Variant[Integer, - Pattern[ - /\A(python)?[0-9](\.?[0-9])*/, - /\Apypy\Z/, - /\Asystem\Z/, - /\Arh-python[0-9]{2}(?:-python)?\Z/ - ] +type Python::Version = Pattern[ + /\A(python)?[0-9](\.?[0-9])*/, + /\Apypy\Z/, + /\Asystem\Z/, + /\Arh-python[0-9]{2}(?:-python)?\Z/ ]