Skip to content

Commit

Permalink
Undef $require_package when $manage_package is False
Browse files Browse the repository at this point in the history
This commit addresses the comments of @smortex.
  • Loading branch information
theosotr committed Jul 2, 2019
1 parent df870bd commit 74d6af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Boolean $test_before_deploy = true
) {
# package
$require_package = undef
if $manage_package {
if is_string($package_name) {
$real_package_name = $package_name
Expand All @@ -23,6 +22,8 @@
}
$require_package = Package[$real_package_name]
ensure_resource ( 'package', $real_package_name, { 'ensure' => 'installed' })
} else {
$require_package = undef
}
ensure_resource ( 'file', $temp_dir, { ensure => directory } )
if $_manage_top_dirs {
Expand Down Expand Up @@ -66,4 +67,3 @@
include patterndb::hiera
}
}

0 comments on commit 74d6af8

Please sign in to comment.