From d3874c2a360d8e51d4054196cf4b0abb2bf65f1f Mon Sep 17 00:00:00 2001 From: Nick Maludy Date: Tue, 12 Dec 2023 13:52:26 -0500 Subject: [PATCH] Use Python::Version as regex --- REFERENCE.md | 2 +- manifests/init.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index fd2cf396..f9ce918e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -311,7 +311,7 @@ Default value: `false` ##### `python_version` -Data type: `Pattern[/^3\.\d{1,2}$|^3\.\d{1,2}\.\d{1,2}$/]` +Data type: `Python::Version` Python version to use in virtualenv. diff --git a/manifests/init.pp b/manifests/init.pp index 1bf7a992..62f300d6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -61,7 +61,7 @@ class puppetboard ( Stdlib::Absolutepath $apache_confd, String[1] $apache_service, - Pattern[/^3\.\d{1,2}$|^3\.\d{1,2}\.\d{1,2}$/] $python_version, + Python::Version $python_version, Enum['package', 'pip', 'vcsrepo'] $install_from = 'pip', Boolean $manage_selinux = pick($facts['os.selinux.enabled'], false), String $user = 'puppetboard',