Skip to content

Commit fa05ea5

Browse files
committed
Fix strict variables error when facts are missing
1 parent 15a028f commit fa05ea5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/init.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
$write_threads = $collectd::params::write_threads,
3535
) inherits collectd::params {
3636

37-
$collectd_version_real = pick($::collectd_version, $minimum_version)
37+
$collectd_version_real = pick_default($facts['collectd_version'], $minimum_version)
3838

3939
class { '::collectd::install':
4040
package_install_options => $package_install_options,

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,5 @@
135135
}
136136

137137
# Override with custom fact value (present only if python is installed)
138-
$python_dir = pick($::python_dir, $default_python_dir)
138+
$python_dir = pick($facts['python_dir'], $default_python_dir)
139139
}

0 commit comments

Comments
 (0)