Skip to content

Commit 8117ebc

Browse files
authored
Allow setting python::version to Integer
Allow setting `python::version` to an integer value to match the `default` option in `install.pp`. This is required for FreeBSD.
1 parent bad1c94 commit 8117ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/version.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# @summary Match all valid versions for python
22
#
3-
type Python::Version = Pattern[
3+
type Python::Version = Variant[ Integer, Pattern[
44
/\A(python)?[0-9](\.?[0-9])*/,
55
/\Apypy\Z/,
66
/\Asystem\Z/,
77
/\Arh-python[0-9]{2}(?:-python)?\Z/
8-
]
8+
]]

0 commit comments

Comments
 (0)