Skip to content

Commit

Permalink
Use Python::Version as regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaludy committed Dec 12, 2023
1 parent 78834f7 commit d3874c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Default value: `false`

##### <a name="-puppetboard--python_version"></a>`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.

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d3874c2

Please sign in to comment.