Skip to content

Commit 58b6fa1

Browse files
committed
Make python::dotfile::group optional
If the python class was not included in the catalog first, python::params has not been loaded. But this is not really critical, just do as python::pip and allow undef values.
1 parent e895f49 commit 58b6fa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Default value: `'root'`
416416

417417
##### <a name="-python--dotfile--group"></a>`group`
418418

419-
Data type: `String[1]`
419+
Data type: `Optional[String[1]]`
420420

421421
group owner of dotfile
422422

manifests/dotfile.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
Enum['absent', 'present'] $ensure = 'present',
2727
Stdlib::Absolutepath $filename = $title,
2828
String[1] $owner = 'root',
29-
String[1] $group = getvar('python::params::group'),
29+
Optional[String[1]] $group = getvar('python::params::group'),
3030
Stdlib::Filemode $mode = '0644',
3131
Hash $config = {},
3232
) {

0 commit comments

Comments
 (0)