Skip to content

Commit 163f5de

Browse files
authored
Merge pull request #628 from bastelfreak/stdlib
(maint) replace legacy validate function with datatype
2 parents 88113c6 + 8bb52bd commit 163f5de

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

manifests/init.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
$aix_source = 'puppet:///pe_packages',
118118
$use_alternate_sources = false,
119119
$alternate_pe_source = undef,
120-
$install_dir = undef,
120+
Optional[Stdlib::Absolutepath] $install_dir = undef,
121121
$disable_proxy = false,
122122
$proxy = undef,
123123
$install_options = [],
@@ -146,10 +146,6 @@
146146
fail('Only one of $source and $absolute_source can be set')
147147
}
148148

149-
if $facts['os']['family'] == 'windows' and $install_dir != undef {
150-
validate_absolute_path($install_dir)
151-
}
152-
153149
if $package_version == undef {
154150
info('puppet_agent performs no actions if a package_version is not specified')
155151
} elsif defined('$::pe_server_version') {

0 commit comments

Comments
 (0)