Skip to content

Commit 8c79e33

Browse files
authored
Merge pull request #704 from bastelfreak/type
pyvenv: Harden datatype for `$environment`
2 parents d51e0bb + 4a2b284 commit 8c79e33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ Default value: `['/bin', '/usr/bin', '/usr/sbin', '/usr/local/bin',]`
982982

983983
##### <a name="-python--pyvenv--environment"></a>`environment`
984984

985-
Data type: `Array`
985+
Data type: `Array[String[1]]`
986986

987987
Optionally specify environment variables for pyvenv
988988

manifests/pyvenv.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
String[1] $group = 'root',
3333
Stdlib::Filemode $mode = '0755',
3434
Array[Stdlib::Absolutepath] $path = ['/bin', '/usr/bin', '/usr/sbin', '/usr/local/bin',],
35-
Array $environment = [],
35+
Array[String[1]] $environment = [],
3636
Optional[String[1]] $prompt = undef,
3737
Python::Venv::PipVersion $pip_version = 'latest',
3838
Optional[Stdlib::Absolutepath] $python_path = undef,

0 commit comments

Comments
 (0)