Skip to content

Commit

Permalink
Fix strict variables error when facts are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Nov 5, 2017
1 parent 15a028f commit fa05ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$write_threads = $collectd::params::write_threads,
) inherits collectd::params {

$collectd_version_real = pick($::collectd_version, $minimum_version)
$collectd_version_real = pick_default($facts['collectd_version'], $minimum_version)

class { '::collectd::install':
package_install_options => $package_install_options,
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@
}

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

0 comments on commit fa05ea5

Please sign in to comment.