Skip to content

Commit 3a3ff1d

Browse files
committedMar 21, 2023
Workaround CI failure with explicit lookup
I would expect Automatic Parameter Lookup to do exactly this, but it does not.
1 parent 5ccfca4 commit 3a3ff1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎REFERENCE.md

+2
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ Data type: `String[1]`
753753

754754
The group of the virtualenv being manipulated.
755755

756+
Default value: `lookup('python::pip::group')`
757+
756758
##### <a name="-python--pip--index"></a>`index`
757759

758760
Data type: `Variant[Boolean,String[1]]`

‎manifests/pip.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# }
5050
#
5151
define python::pip (
52-
String[1] $group,
52+
String[1] $group = lookup('python::pip::group'), # lint:ignore:lookup_in_parameter
5353
String[1] $pkgname = $name,
5454
Variant[Enum[present, absent, latest], String[1]] $ensure = present,
5555
Variant[Enum['system'], Stdlib::Absolutepath] $virtualenv = 'system',

0 commit comments

Comments
 (0)
Please sign in to comment.