Skip to content

Commit 7792165

Browse files
authored
Revert "Allow setting python::version in hiera to Integer"
1 parent 46c7b72 commit 7792165

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

REFERENCE.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,14 +1208,5 @@ Alias of `Pattern[/^(<|>|<=|>=|==) [0-9]*(\.[0-9]+)*$/, /\Alatest\Z/]`
12081208

12091209
Match all valid versions for python
12101210

1211-
Alias of
1212-
1213-
```puppet
1214-
Variant[Integer, Pattern[
1215-
/\A(python)?[0-9](\.?[0-9])*/,
1216-
/\Apypy\Z/,
1217-
/\Asystem\Z/,
1218-
/\Arh-python[0-9]{2}(?:-python)?\Z/
1219-
]]
1220-
```
1211+
Alias of `Pattern[/\A(python)?[0-9](\.?[0-9])*/, /\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/]`
12211212

types/version.pp

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

0 commit comments

Comments
 (0)