Skip to content

Commit

Permalink
Merge pull request voxpupuli#766 from bastelfreak/private
Browse files Browse the repository at this point in the history
add assert_private to private classes
  • Loading branch information
bastelfreak authored Mar 30, 2018
2 parents b7f217b + c1c7eb3 commit 6f0ca7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
Integer $write_threads = $collectd::write_threads,
) {

assert_private()

$_conf_content = $purge_config ? {
true => template('collectd/collectd.conf.erb'),
default => $conf_content,
Expand Down
2 changes: 2 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
$manage_package = $collectd::manage_package,
) {

assert_private()

if $manage_package {
package { $package_name:
ensure => $package_ensure,
Expand Down
2 changes: 2 additions & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
$manage_service = $collectd::manage_service,
) {

assert_private()

if $manage_service {
service { 'collectd':
ensure => $service_ensure,
Expand Down

0 comments on commit 6f0ca7d

Please sign in to comment.